From da1856f8b465e91d4b276032d58ab51a387886cd Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 2 Jan 2024 17:30:39 +0100 Subject: [PATCH] Patch: make const --- 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 82576f99..19bf5d04 100644 --- a/r5dev/common/opcodes.cpp +++ b/r5dev/common/opcodes.cpp @@ -351,7 +351,7 @@ 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 - vector starPakOpenFile = { + const vector starPakOpenFile = { 0x4D, 0x31, 0xC0, // xor, r8, r8 0x48, 0x8D, 0x8C, 0x24, 0x90, 0x00, 0x00, 0x00, // lea rcx, [rsp+378h+90h] FileName