From 58e0d96e22c2621646c7d15b702fa799e8361ac3 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 26 Jul 2022 03:13:10 +0200 Subject: [PATCH] Disable CAI_NetworkManager::ShouldRebuild 'restart\n' patch. AIN rebuilding and saving works, the patch is no longer needed. --- r5dev/common/opcodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/common/opcodes.cpp b/r5dev/common/opcodes.cpp index d8445532..5fe24b70 100644 --- a/r5dev/common/opcodes.cpp +++ b/r5dev/common/opcodes.cpp @@ -370,7 +370,7 @@ void RuntimePtc_Init() /* .TEXT */ #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_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. //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