.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 .versions 3OJ2 3OJ3 3OJ4 3OJ5 3OE0 3OE1 3OE2 3OP0 3SJT 3SJ0 3SE0 3SP0 entry_ptr: reloc0: .offsetof start start: .include WriteCodeBlocksGC # Extended Word Select Menu (PSO PCv2 Style) .data .data 0x00000004 li r3, 0 # Chat Log Window LF/TAB Bug Fix .data .data 0x00000004 nop # Chat Bubble Window TAB Bug Fix .data .data 0x00000004 nop # Chat Log Window: Scroll Lock (Hold L+R) .label scroll_lock_hook_loc, 0x8000D6A0 .data scroll_lock_hook_loc .deltaof scroll_lock_hook_start, scroll_lock_hook_end .address scroll_lock_hook_loc scroll_lock_hook_start: lis r3, lhz r3, [r3 ] andi. r0, r3, 0x0003 cmplwi r0, 3 beqlr stfs [r28 + 0x0084], f1 blr scroll_lock_hook_end: .label scroll_lock_hook_call, .data scroll_lock_hook_call .data 0x00000004 .address scroll_lock_hook_call bl scroll_lock_hook_start .data 0x00000000 .data 0x00000000