CheatMenuSA/src/tests/Test.cpp

27 lines
426 B
C++
Raw Normal View History

#include "plugin.h"
using namespace plugin;
2021-01-28 03:01:32 -05:00
_asm
{
xor ebx, ebx
cmp eax, ebx
jz short loc_6D1CFD
call _ZN10CGameLogic17IsCoopGameGoingOnEv ; CGameLogic::IsCoopGameGoingOn(void)
test al, al
jnz short loc_6D1CC4
}
class Test
{
public:
Test()
{
2021-01-28 03:01:32 -05:00
Events::initGameEvent += []
{
2021-01-28 03:01:32 -05:00
patch::ReplaceFunctionCall(0x6D1C80);
};
}
} test;