Skip to content

Commit

Permalink
XboxKrnlVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo720 committed Aug 23, 2024
1 parent 41dae0b commit 0e73245
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
8 changes: 8 additions & 0 deletions nboxkrnl/ke/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
2 changes: 1 addition & 1 deletion nboxkrnl/ke/thunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
9 changes: 9 additions & 0 deletions nboxkrnl/kernel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit 0e73245

Please sign in to comment.