rewrite chat patch

This commit is contained in:
Martin Michelsen
2025-02-08 22:05:44 -08:00
parent 15f923a639
commit 07c5a8a4b6
12 changed files with 396 additions and 216 deletions
@@ -1,6 +1,6 @@
.meta name="Chat"
.meta description="Enables extended\nWord Select and\nstops the Log\nWindow from\nscrolling with L+R"
# Original code by Ralf @ GC-Forever and Aleron Ives
# Original codes by Ralf @ GC-Forever and Aleron Ives
# https://www.gc-forever.com/forums/viewtopic.php?t=2050
# https://www.gc-forever.com/forums/viewtopic.php?t=2049
@@ -10,23 +10,38 @@ reloc0:
start:
.include WriteCodeBlocksGC
.data 0x8000D6A0
.data 0x0000001C
.data 0x801D9B30 # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x801D9B30
li r3, 0
.data 0x8017F434 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x8017F434
nop
.data 0x8016A77C # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x8016A77C
nop
.data 0x8000D6A0 # Chat Log Window: Scroll Lock (Hold L+R)
.deltaof scroll_lock_hook, scroll_lock_hook_end
.address 0x8000D6A0
scroll_lock_hook:
lis r3, 0x8048
lhz r3, [r3 + 0x1238]
lhz r3, [r3 + 0x1700]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x8017F51C
.data 0x8017F51C # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.data 0x4BE8E185
.data 0x801D9B30
.data 0x00000004
li r3, 0x0000
.address 0x8017F51C
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000