Joined: May 22, 2003 Posts: 23948 Location: NSW, Australia
Posted: Sat Dec 11, 2004 7:45 pm Post subject: runxbe();
Hi guys,
I have a runxbe(); class.
All the app does is boot another .xbe at the moment.. Can anyone help getting this to work..
heres the launch.cpp:
Code:
#include "launch.h"
#include <stdio.h> // sprintf(..)
/*
Description: Launch another XBE by unmounting then remounting D:
Detail:
If you want to launch another XBE (say you have a menu program) - you
have to first map the D: drive to the location of the XBE you are launching
or else it won't be able to find its media files.
You have to first unmount the D: drive, then re-mount it to the correct
device and subdirectory. Then simply call your XBE.
*/
// Mount the D: drive to a given device and directory
// szDevice = "Cdrom0" or "Harddisk0\Partition6"
// szDir = "" or "Game1"
static void MountD(char* szDevice, char* szDir)
{
char szSourceDevice[256];
char szDestinationDrive[16];
// szDevice = the device where the XBE is "Cdrom0"
// szDir = the subdirectory where your xbe is "Games\Game1"
// szFile = the name of your XBE (without the path) - "Game1.xbe"
void RunXbe (char* szDevice, char* szDir, char* szFile)
{
char szXbePath[64];
wsprintf(szXbePath,"D:\\",szFile);
void RunXbe (char* szDevice, char* szDir, char* szFile)
{
//Start a standard exe here for pc version :)
}
#endif //_XBOX
and heres the launch.h:
Code:
#pragma once
#ifdef _XBOX
#include <xtl.h>
#else
// Where using DirectX
#pragma comment(lib, "D3d8.lib") // DirectX 8
#pragma comment(lib, "D3dx8.lib")
#include <d3dx8.h>
#endif //_XBOX
// szDevice = the device where the XBE is "Cdrom0"
// szDir = the subdirectory where your xbe is "Games\Game1"
// szFile = the name of your XBE (without the path) - "Game1.xbe"
void RunXbe (char* szDevice, char* szDir, char* szFile);
Now i call the function no problems at all and can pass my variables accross but i get a error. .xbe could not be booted.. I know its something so small.. any whizzes around?? Im not that bad a coder on xbox but this ones got me stumped..
// szDevice = "Cdrom0" or "Harddisk0\Partition6" (where xbe is)
// szDir = the subdirectory where your xbe is "Games\Game1"
// szFile = the name of your XBE (without the path) - "Game1.xbe"
Im just trying to call another xbe for a test.. Its really the same app at the moment!
Joined: Feb 07, 2005 Posts: 2743 Location: Florida
Posted: Fri Nov 18, 2005 9:46 pm Post subject:
Sorry Hobbs, had to delete a realy idiotic post someone made here. _________________
|
All times are GMT |Page 1 of 1
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum