[Kernel] Toggle DmIsDebuggerPresent when debug = true

This commit is contained in:
imaginebeingatcomputers 2025-05-15 13:30:22 -05:00 committed by Radosław Gliński
parent fe739208b6
commit fb3c12d362
1 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,8 @@
// chrispy: no idea what a real valid value is for this
static constexpr const char DmXboxName[] = "Xbox360Name";
DECLARE_bool(debug);
namespace xe {
namespace kernel {
namespace xbdm {
@ -66,7 +68,9 @@ dword_result_t DmGetXboxName_entry(const ppc_context_t& ctx) {
}
DECLARE_XBDM_EXPORT1(DmGetXboxName, kDebug, kImplemented)
dword_result_t DmIsDebuggerPresent_entry() { return 0; }
dword_result_t DmIsDebuggerPresent_entry() {
return static_cast<uint32_t>(cvars::debug);
}
DECLARE_XBDM_EXPORT1(DmIsDebuggerPresent, kDebug, kStub);
void DmSendNotificationString_entry(lpdword_t unk0_ptr) {}