mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[Kernel/XBDM] Change return values of RegisterCommandProcessorEx & DmWalkLoadedModules
This commit is contained in:
parent
36f687e40e
commit
40bbf704e0
|
|
@ -50,7 +50,14 @@ MAKE_DUMMY_STUB_STATUS(DmRegisterCommandProcessor);
|
||||||
void DmSendNotificationString(lpdword_t unk0_ptr) {}
|
void DmSendNotificationString(lpdword_t unk0_ptr) {}
|
||||||
DECLARE_XBDM_EXPORT1(DmSendNotificationString, kDebug, kStub);
|
DECLARE_XBDM_EXPORT1(DmSendNotificationString, kDebug, kStub);
|
||||||
|
|
||||||
MAKE_DUMMY_STUB_STATUS(DmRegisterCommandProcessorEx);
|
dword_result_t DmRegisterCommandProcessorEx(lpdword_t name_ptr,
|
||||||
|
lpdword_t handler_fn,
|
||||||
|
dword_t unk3) {
|
||||||
|
// Return success to prevent some games from stalling
|
||||||
|
return X_STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
DECLARE_XBDM_EXPORT1(DmRegisterCommandProcessorEx, kDebug, kStub);
|
||||||
|
|
||||||
MAKE_DUMMY_STUB_STATUS(DmStartProfiling);
|
MAKE_DUMMY_STUB_STATUS(DmStartProfiling);
|
||||||
MAKE_DUMMY_STUB_STATUS(DmStopProfiling);
|
MAKE_DUMMY_STUB_STATUS(DmStopProfiling);
|
||||||
|
|
||||||
|
|
@ -63,7 +70,8 @@ MAKE_DUMMY_STUB_STATUS(DmGetThreadInfoEx);
|
||||||
MAKE_DUMMY_STUB_STATUS(DmSetProfilingOptions);
|
MAKE_DUMMY_STUB_STATUS(DmSetProfilingOptions);
|
||||||
|
|
||||||
dword_result_t DmWalkLoadedModules(lpdword_t unk0_ptr, lpdword_t unk1_ptr) {
|
dword_result_t DmWalkLoadedModules(lpdword_t unk0_ptr, lpdword_t unk1_ptr) {
|
||||||
return X_STATUS_INVALID_PARAMETER;
|
// Some games will loop forever unless this code is returned
|
||||||
|
return 0x82DA0104;
|
||||||
}
|
}
|
||||||
DECLARE_XBDM_EXPORT1(DmWalkLoadedModules, kDebug, kStub);
|
DECLARE_XBDM_EXPORT1(DmWalkLoadedModules, kDebug, kStub);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue