[Debug] Com_Assert_f for the memes

This commit is contained in:
Diavolo 2022-07-09 23:07:58 +02:00
parent 2a21f754e0
commit 25a3b8f485
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5
2 changed files with 9 additions and 0 deletions

View File

@ -213,6 +213,11 @@ namespace Components
}
}
void Debug::Com_Assert_f()
{
assert(("a", false));
}
void Debug::CL_InitDebugDvars()
{
static const char* debugOverlayNames_0[] =
@ -236,5 +241,7 @@ namespace Components
// Hook end of CG_DrawDebugOverlays (This is to ensure some checks are done before our hook is executed).
Utils::Hook(0x49CB0A, CG_DrawDebugOverlays_Hk, HOOK_JUMP).install()->quick();
Utils::Hook::Set<void(*)()>(0x60BCEA, Com_Assert_f);
}
}

View File

@ -31,6 +31,8 @@ namespace Components
static void CG_DrawDebugOverlays_Hk(int localClientNum);
static void Com_Assert_f();
static void CL_InitDebugDvars();
};
}