[Kernel] Toggle DmIsDebuggerPresent when debug = true
This commit is contained in:
committed by
Radosław Gliński
parent
fe739208b6
commit
fb3c12d362
@@ -18,6 +18,8 @@
|
|||||||
// chrispy: no idea what a real valid value is for this
|
// chrispy: no idea what a real valid value is for this
|
||||||
static constexpr const char DmXboxName[] = "Xbox360Name";
|
static constexpr const char DmXboxName[] = "Xbox360Name";
|
||||||
|
|
||||||
|
DECLARE_bool(debug);
|
||||||
|
|
||||||
namespace xe {
|
namespace xe {
|
||||||
namespace kernel {
|
namespace kernel {
|
||||||
namespace xbdm {
|
namespace xbdm {
|
||||||
@@ -66,7 +68,9 @@ dword_result_t DmGetXboxName_entry(const ppc_context_t& ctx) {
|
|||||||
}
|
}
|
||||||
DECLARE_XBDM_EXPORT1(DmGetXboxName, kDebug, kImplemented)
|
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);
|
DECLARE_XBDM_EXPORT1(DmIsDebuggerPresent, kDebug, kStub);
|
||||||
|
|
||||||
void DmSendNotificationString_entry(lpdword_t unk0_ptr) {}
|
void DmSendNotificationString_entry(lpdword_t unk0_ptr) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user