Implement XboxKernelVersion export

This allows XApiApplyKernelPatches(); to run without having to intercept it
This commit is contained in:
Luke Usher 2016-08-19 19:53:37 +01:00
parent 9568b129a4
commit 3f70ed9f7c
3 changed files with 20 additions and 2 deletions

View File

@ -102,7 +102,14 @@ XBSYSAPI EXPORTNUM(322) XBOX_HARDWARE_INFO XboxHardwareInfo;
// ******************************************************************
XBSYSAPI EXPORTNUM(323) UCHAR XboxHDKey[16];
XBSYSAPI VOID *XboxKrnlVersion;
typedef struct _XBOX_KRNL_VERSION {
USHORT Major;
USHORT Minor;
USHORT Build;
USHORT Qfe;
} XBOX_KRNL_VERSION;
XBSYSAPI EXPORTNUM(324) XBOX_KRNL_VERSION XboxKrnlVersion;
// ******************************************************************
// * XboxSignatureKey

View File

@ -4615,6 +4615,17 @@ XBSYSAPI EXPORTNUM(323) xboxkrnl::UCHAR xboxkrnl::XboxHDKey[16] =
0x00, 0x00, 0x00, 0x00,
};
// ******************************************************************
// * 0x0144 - XboxKrnlVersion
// ******************************************************************
XBSYSAPI EXPORTNUM(324) xboxkrnl::XBOX_KRNL_VERSION xboxkrnl::XboxKrnlVersion =
{
1, 0, 5838, 1
};
// ******************************************************************
// * XboxSignatureKey
// ******************************************************************

View File

@ -381,7 +381,7 @@ extern "C" CXBXKRNL_API uint32 CxbxKrnl_KernelThunkTable[367] =
(uint32)PANIC(0x0141), // 0x0141 (321) XboxEEPROMKey
(uint32)&xboxkrnl::XboxHardwareInfo, // 0x0142 (322)
(uint32)&xboxkrnl::XboxHDKey, // 0x0143 (323)
(uint32)PANIC(0x0144), // 0x0144 (324) XboxKrnlVersion
(uint32)&xboxkrnl::XboxKrnlVersion, // 0x0144 (324) XboxKrnlVersion
(uint32)&xboxkrnl::XboxSignatureKey, // 0x0145 (325)
(uint32)PANIC(0x0146), // 0x0146 (326) XeImageFileName
(uint32)PANIC(0x0147), // 0x0147 (327) XeLoadSection