2021-01-07 16:07:45 -05:00
|
|
|
#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
|
|
|
|
}
|
|
|
|
|
2021-01-07 16:07:45 -05:00
|
|
|
class Test
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Test()
|
2021-01-09 15:06:53 -05:00
|
|
|
{
|
2021-01-28 03:01:32 -05:00
|
|
|
Events::initGameEvent += []
|
2021-01-07 16:07:45 -05:00
|
|
|
{
|
2021-01-28 03:01:32 -05:00
|
|
|
patch::ReplaceFunctionCall(0x6D1C80);
|
2021-01-07 16:07:45 -05:00
|
|
|
};
|
|
|
|
}
|
|
|
|
} test;
|
|
|
|
|