#engine [G2A]
#patch [zScriptSaveCondition]
// engine specific
INT text_CGameManager_MenuEnabled_write_enableSave = 0x0042AD34
INT func_zSTRING_zSTRING = 0x004010C0
INT func_zSTRING_destructor = 0x00401160
INT func_zCParser_CallFunc = 0x007929D0
INT offset_parser = 0x00AB40C0
HEX str_script_func = "C_PLAYERCANSAVEGAME\0"
INT sizeof_zSTRING = 20
// end of engine specific
#assembler [text_CGameManager_MenuEnabled_write_enableSave]
test ecx, ecx
jz continue
push eax
push edx
sub esp, $sizeof_zSTRING
mov ecx, esp
push $str_script_func
call $func_zSTRING_zSTRING
mov eax, esp
push eax
mov ecx, $offset_parser
call $func_zCParser_CallFunc
push dword ptr [eax]
lea ecx, [esp+4]
call $func_zSTRING_destructor
pop ecx
add esp, $sizeof_zSTRING
pop edx
pop eax
continue:
orgcode
#/assembler
#/patch
#/engine