From ac5f94087448447e957a7d6a56c25c93b656dda4 Mon Sep 17 00:00:00 2001 From: szapp Date: Thu, 5 Sep 2024 18:31:22 +0200 Subject: [PATCH] Add hook --- src/hook_recoverInvalidItem2.asm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/hook_recoverInvalidItem2.asm diff --git a/src/hook_recoverInvalidItem2.asm b/src/hook_recoverInvalidItem2.asm new file mode 100644 index 0000000..ba268fe --- /dev/null +++ b/src/hook_recoverInvalidItem2.asm @@ -0,0 +1,19 @@ +; Hook oCNpc::Unarchive to recover the archiver's cursor on previously invalid items + +%include "inc/macros.inc" +%include "inc/symbols.inc" + +%ifidn __OUTPUT_FORMAT__, bin + org g1g2(0x6A3DD9,0x6D67BB,0x6E96C1,0x748161) +%endif + +bits 32 + + +section .text align=1 ; Prevent auto-alignment + + jmp recoverInvalidItem2 + nop + + ; Overwrites + ; call [ebx+0x80]