Files
psopeeps-newserv/system/client-functions/ChatFeatures/ChatFeatures.3OJ5.patch.s
T
Martin Michelsen 07c5a8a4b6 rewrite chat patch
2025-02-08 22:05:44 -08:00

48 lines
1.2 KiB
ArmAsm

.meta name="Chat"
.meta description="Enables extended\nWord Select and\nstops the Log\nWindow from\nscrolling with L+R"
# 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
entry_ptr:
reloc0:
.offsetof start
start:
.include WriteCodeBlocksGC
.data 0x80346A80 # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x80346A80
li r3, 0
.data 0x80269898 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x80269898
nop
.data 0x802519A4 # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x802519A4
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, 0x8051
lhz r3, [r3 - 0x1690]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80269984 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80269984
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000