diff --git a/nboxkrnl/ke/kernel.cpp b/nboxkrnl/ke/kernel.cpp index 7e91364..8b333f3 100644 --- a/nboxkrnl/ke/kernel.cpp +++ b/nboxkrnl/ke/kernel.cpp @@ -33,6 +33,14 @@ EXPORTNUM(322) XBOX_HARDWARE_INFO XboxHardwareInfo = 0 // unknown }; +EXPORTNUM(324) XBOX_KRNL_VERSION XboxKrnlVersion = +{ + 1, + 0, + 5838, // kernel build 5838 + 1 +}; + // Source: Cxbx-Reloaded EXPORTNUM(125) ULONGLONG XBOXAPI KeQueryInterruptTime() { diff --git a/nboxkrnl/ke/thunk.cpp b/nboxkrnl/ke/thunk.cpp index 5e2f9b0..83a1e10 100644 --- a/nboxkrnl/ke/thunk.cpp +++ b/nboxkrnl/ke/thunk.cpp @@ -344,7 +344,7 @@ ULONG KernelThunkTable[379] = (ULONG)VARIABLE(&XboxEEPROMKey), // 0x0141 (321) (ULONG)VARIABLE(&XboxHardwareInfo), // 0x0142 (322) (ULONG)FUNC(nullptr), //(ULONG)VARIABLE(&XboxHDKey), // 0x0143 (323) - (ULONG)FUNC(nullptr), //(ULONG)VARIABLE(&XboxKrnlVersion), // 0x0144 (324) + (ULONG)VARIABLE(&XboxKrnlVersion), // 0x0144 (324) (ULONG)FUNC(nullptr), //(ULONG)VARIABLE(&XboxSignatureKey), // 0x0145 (325) (ULONG)VARIABLE(&XeImageFileName), // 0x0146 (326) (ULONG)FUNC(&XeLoadSection), // 0x0147 (327) diff --git a/nboxkrnl/kernel.hpp b/nboxkrnl/kernel.hpp index b790da5..b762ac9 100644 --- a/nboxkrnl/kernel.hpp +++ b/nboxkrnl/kernel.hpp @@ -142,6 +142,13 @@ struct XBOX_HARDWARE_INFO { UCHAR Unknown4; }; +struct XBOX_KRNL_VERSION { + USHORT Major; + USHORT Minor; + USHORT Build; + USHORT Qfe; +}; + inline SystemType XboxType; inline ULONG IoDvdInputType; // 0: xbe, 1: xiso inline ULONGLONG IoRequestId = 0; @@ -153,6 +160,8 @@ extern "C" { EXPORTNUM(322) DLLEXPORT extern XBOX_HARDWARE_INFO XboxHardwareInfo; +EXPORTNUM(324) DLLEXPORT extern XBOX_KRNL_VERSION XboxKrnlVersion; + #ifdef __cplusplus } #endif