From c1a5063ba8b991d9f53627e8c201f7c367624daa Mon Sep 17 00:00:00 2001 From: James Osborne Date: Sun, 7 Jun 2026 06:18:51 -0400 Subject: [PATCH] Use VirtualProtect for PC WriteCodeBlocks --- .../PsoPeepsPCWriteCodeNoopTest.s | 25 ------------------- system/client-functions/RaresInQuests.s | 13 ++++++++-- 2 files changed, 11 insertions(+), 27 deletions(-) delete mode 100644 system/client-functions/PsoPeepsPCWriteCodeNoopTest.s diff --git a/system/client-functions/PsoPeepsPCWriteCodeNoopTest.s b/system/client-functions/PsoPeepsPCWriteCodeNoopTest.s deleted file mode 100644 index 3161d9a5..00000000 --- a/system/client-functions/PsoPeepsPCWriteCodeNoopTest.s +++ /dev/null @@ -1,25 +0,0 @@ -.meta visibility="all" -.meta name="PC text noop" -.meta description="PC-only test.\nWrites NOPs over\nexisting code NOPs." - -entry_ptr: -reloc0: - .offsetof start -start: - .include WriteCodeBlocks - - - - .versions 2OJW - - .data 0x004E03DE - .data 2 - nop - nop - - - - .all_versions - - .data 0x00000000 - .data 0x00000000 diff --git a/system/client-functions/RaresInQuests.s b/system/client-functions/RaresInQuests.s index a16d7fd8..4550a098 100644 --- a/system/client-functions/RaresInQuests.s +++ b/system/client-functions/RaresInQuests.s @@ -43,8 +43,17 @@ start: - # PSO Peeps: PC 2OJW temporarily disabled while testing PC WriteCodeBlocks. - # The disk-patched bytes work, but runtime menu delivery is crashing. + .versions 2OJW + + .data 0x004DFC9A + .data 2 + nop + nop + + .data 0x004E03F4 + .data 2 + nop + nop