From d1ba2bd56720a0776824a8e309d7d859704244bc Mon Sep 17 00:00:00 2001 From: IcePixelx <41352111+PixieCore@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:35:48 +0100 Subject: [PATCH] Fixed changelevel, needs more research tho. --- r5dev/common/opcodes.cpp | 1 + r5dev/common/opcodes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/r5dev/common/opcodes.cpp b/r5dev/common/opcodes.cpp index a3e9c348..a8872c11 100644 --- a/r5dev/common/opcodes.cpp +++ b/r5dev/common/opcodes.cpp @@ -70,6 +70,7 @@ void Dedicated_Init() c2.Offset(0x23C).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // JNE --> NOP | TODO: NOP 'particle_script' instead. c2.Offset(0x2BD).Patch({ 0x90, 0x90, 0x90 }); // MOV --> NOP | TODO: NOP 'particle_script' instead. c3.Offset(0xA9).Patch({ 0x90, 0x90, 0x90, 0x90 }); // MOV --> NOP | TODO: NOP 'highlight_system' instead. + unk1.Offset(0x129).Patch({ 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 }); // MOV AND CALL --> | Eliminates null pointer dereference crash. Needs more research. //------------------------------------------------------------------------- // CENGINEAPI diff --git a/r5dev/common/opcodes.h b/r5dev/common/opcodes.h index 2c1039c9..6990f84c 100644 --- a/r5dev/common/opcodes.h +++ b/r5dev/common/opcodes.h @@ -87,6 +87,7 @@ namespace ADDRESS FindModel = 0x140253530; ADDRESS LoadModel = 0x140253810; + ADDRESS unk1 = 0x140256480; // case 1: only gets called on changelevel, needs more research, function gets called by CModelLoader virtual function. ADDRESS ParsePropStatic = 0x1402901E0;