diff --git a/r5dev/common/opcodes.cpp b/r5dev/common/opcodes.cpp index 1de19762..82576f99 100644 --- a/r5dev/common/opcodes.cpp +++ b/r5dev/common/opcodes.cpp @@ -351,36 +351,14 @@ void RuntimePtc_Init() /* .TEXT */ CMemory(v_SQVM_CompileError).Offset(0xE0).FindPatternSelf("E8", CMemory::Direction::DOWN, 200).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90 }); // CAL --> NOP | For dedicated we should not perform post-error events such as telemetry / showing 'COM_ExplainDisconnection' UI etc. #endif // !DEDICATED -#if defined (GAMEDLL_S2) || defined (GAMEDLL_S3) -#ifndef CLIENT_DLL - //p_CAI_NetworkManager__ShouldRebuild.Offset(0xA0).FindPatternSelf("FF ?? ?? ?? 00 00", CMemory::Direction::DOWN, 200).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // CAL --> NOP | Virtual call to restart when building AIN (which clears the AIN memory). Remove this once writing to file works. - //p_Detour_LevelInit.Offset(0x100).FindPatternSelf("74", CMemory::Direction::DOWN, 600).Patch({ 0xEB }); // JE --> JMP | Do while loop setting fields to -1 in navmesh is writing out of bounds (!TODO). -#endif // !CLIENT_DLL -#endif - vector starPakOpenFile = { 0x4D, 0x31, 0xC0, // xor, r8, r8 0x48, 0x8D, 0x8C, 0x24, 0x90, 0x00, 0x00, 0x00, // lea rcx, [rsp+378h+90h] FileName // call RTech::OpenFile [RIP+RVA] - #if defined (GAMEDLL_S0) - 0xE8, 0x87, 0x96, 0xFF, 0xFF, - #elif defined (GAMEDLL_S1) - 0xE8, 0x27, 0x95, 0xFF, 0xFF, - #elif defined (GAMEDLL_S2) - 0xE8, 0x87, 0x95, 0xFF, 0xFF, - #elif defined (GAMEDLL_S3) 0xE8, 0x77, 0x8F, 0xFF, 0xFF, - #endif - 0x8B, 0xF8, // mov edi, eax - - // jmp [RIP+RVA] - #if defined (GAMEDLL_S0) || defined(GAMEDLL_S1) - 0xE9, 0xDC, 0x00, 0x00, 0x00 - #elif defined (GAMEDLL_S2) || defined(GAMEDLL_S3) - 0xE9, 0xDA, 0x00, 0x00, 0x00 - #endif + 0xE9, 0xDA, 0x00, 0x00, 0x00 // jmp [RIP+RVA] }; p_Pak_OpenFileOffset.Patch(starPakOpenFile);