diff --git a/frontend/platform/platform_xdk.c b/frontend/platform/platform_xdk.c index f63f0a23a2..e6a220e480 100644 --- a/frontend/platform/platform_xdk.c +++ b/frontend/platform/platform_xdk.c @@ -233,10 +233,10 @@ static void frontend_xdk_get_environment_settings(int *argc, char *argv[], { BYTE* pLaunchData = new BYTE[dwLaunchDataSize]; XGetLaunchData(pLaunchData, dwLaunchDataSize); - AURORA_LAUNCHDATA_ROM* aurora = (AURORA_LAUNCHDATA_ROM*)pLaunchData; + AURORA_LAUNCHDATA_EXECUTABLE* aurora = (AURORA_LAUNCHDATA_EXECUTABLE*)pLaunchData; char* extracted_path = new char[dwLaunchDataSize]; memset(extracted_path, 0, dwLaunchDataSize); - if (aurora->ApplicationId == AURORA_LAUNCHDATA_APPID && aurora->FunctionId == AURORA_LAUNCHDATA_ROM_FUNCID) + if (aurora->ApplicationId == AURORA_LAUNCHDATA_APPID && aurora->FunctionId == AURORA_LAUNCHDATA_EXECUTABLE_FUNCID) { if (xbox_io_mount("aurora:", aurora->SystemPath) >= 0) sprintf_s(extracted_path, dwLaunchDataSize, "aurora:%s%s", aurora->RelativePath, aurora->Exectutable); diff --git a/frontend/platform/platform_xdk.h b/frontend/platform/platform_xdk.h index 0965cf80b1..222edf92e8 100644 --- a/frontend/platform/platform_xdk.h +++ b/frontend/platform/platform_xdk.h @@ -29,18 +29,19 @@ #ifdef _XBOX360 #define AURORA_LAUNCHDATA_APPID 'AUOA' -#define AURORA_LAUNCHDATA_ROM_FUNCID 'ROMS' -#define AURORA_LAUNCHDATA_ROM_VERSION 1 +#define AURORA_LAUNCHDATA_EXECUTABLE_FUNCID 'ROMS' +#define AURORA_LAUNCHDATA_EXECUTABLE_VERSION 1 -typedef struct _AURORA_LAUNCHDATA_ROM { - DWORD ApplicationId; // AURORA_LAUNCHDATA_APPID - DWORD FunctionId; // AURORA_LAUNCHDATA_ROM_FUNCID - DWORD FunctionVersion; // AURORA_LAUNCHDATA_ROM_VERSION - CHAR SystemPath[0x40]; // /System/Harddisk0/Parition0 - CHAR RelativePath[0x104]; // /Emulators/Snes9x/Roms/ - CHAR Exectutable[0x28]; // ChronoTrigger.zip - CHAR Reserved[0x100]; // Reserved for future use -} AURORA_LAUNCHDATA_ROM, *PAURORA_LAUNCH_DATA_ROM; +typedef struct _AURORA_LAUNCHDATA_EXECUTABLE +{ + DWORD ApplicationId; // AURORA_LAUNCHDATA_APPID + DWORD FunctionId; // AURORA_LAUNCHDATA_EXECUTABLE_FUNCID + DWORD FunctionVersion; // AURORA_LAUNCHDATA_EXECUTABLE_VERSION + CHAR SystemPath[0x40]; // /System/Harddisk0/Parition0 + CHAR RelativePath[0x104]; // /Emulators/Snes9x/Roms/ + CHAR Exectutable[0x28]; // ChronoTrigger.zip + CHAR Reserved[0x100]; // Reserved for future use +} AURORA_LAUNCHDATA_EXECUTABLE, *PAURORA_LAUNCH_DATA_EXECUTABLE; #endif