make client functions parameterizable by version

This commit is contained in:
Martin Michelsen
2025-06-01 20:50:48 -07:00
parent 1a6b26e56b
commit bee4c55446
453 changed files with 3636 additions and 21378 deletions
@@ -1,47 +0,0 @@
.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 0x8034525C # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x8034525C
li r3, 0
.data 0x80268788 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x80268788
nop
.data 0x80250AEC # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x80250AEC
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 - 0x6C50]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80268874 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80268874
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 0x803452A0 # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x803452A0
li r3, 0
.data 0x80268788 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x80268788
nop
.data 0x80250AEC # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x80250AEC
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 - 0x6770]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80268874 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80268874
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 0x80346E4C # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x80346E4C
li r3, 0
.data 0x80269B5C # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x80269B5C
nop
.data 0x80251C68 # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x80251C68
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 - 0x1D90]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80269C48 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80269C48
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 0x8034445C # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x8034445C
li r3, 0
.data 0x80267DDC # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x80267DDC
nop
.data 0x80250264 # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x80250264
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 - 0x7530]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80267EC8 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80267EC8
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 0x803457AC # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x803457AC
li r3, 0
.data 0x80268A88 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x80268A88
nop
.data 0x80250CB0 # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x80250CB0
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 - 0x3A70]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80268B74 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80268B74
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 0x80346CCC # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x80346CCC
li r3, 0
.data 0x80269AE4 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x80269AE4
nop
.data 0x80251CA4 # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x80251CA4
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 - 0x1430]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80269BD0 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80269BD0
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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
@@ -1,47 +0,0 @@
.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 0x8034627C # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x8034627C
li r3, 0
.data 0x802693A4 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x802693A4
nop
.data 0x802514B0 # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x802514B0
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 - 0x0D70]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80269490 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80269490
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 0x801C7D88 # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x801C7D88
li r3, 0
.data 0x8016FBB4 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x8016FBB4
nop
.data 0x8015B0CC # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x8015B0CC
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, 0x804A
lhz r3, [r3 + 0x0560]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x8016FC9C # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x8016FC9C
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 0x801C7CFC # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x801C7CFC
li r3, 0
.data 0x8016FD00 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x8016FD00
nop
.data 0x8015B1BC # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x8015B1BC
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, 0x804A
lhz r3, [r3 - 0x08C0]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x8016FDE8 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x8016FDE8
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 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 + 0x1700]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x8017F51C # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x8017F51C
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -1,47 +0,0 @@
.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 0x801C83FC # Extended Word Select Menu (PSO PCv2 Style)
.data 0x00000004
.address 0x801C83FC
li r3, 0
.data 0x80170060 # Chat Log Window LF/TAB Bug Fix
.data 0x00000004
.address 0x80170060
nop
.data 0x8015B578 # Chat Bubble Window TAB Bug Fix
.data 0x00000004
.address 0x8015B578
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, 0x804A
lhz r3, [r3 + 0x2980]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
.data 0x80170148 # Chat Log Window: Scroll Lock (Hold L+R)
.data 0x00000004
.address 0x80170148
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000
@@ -0,0 +1,54 @@
.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 <VERS 0x8034445C 0x803457AC 0x80346CCC 0x80346A80 0x8034525C 0x803452A0 0x80346E4C 0x8034627C 0x801D9B30 0x801C7CFC 0x801C7D88 0x801C83FC>
.data 0x00000004
.address <VERS 0x8034445C 0x803457AC 0x80346CCC 0x80346A80 0x8034525C 0x803452A0 0x80346E4C 0x8034627C 0x801D9B30 0x801C7CFC 0x801C7D88 0x801C83FC>
li r3, 0
# Chat Log Window LF/TAB Bug Fix
.data <VERS 0x80267DDC 0x80268A88 0x80269AE4 0x80269898 0x80268788 0x80268788 0x80269B5C 0x802693A4 0x8017F434 0x8016FD00 0x8016FBB4 0x80170060>
.data 0x00000004
.address <VERS 0x80267DDC 0x80268A88 0x80269AE4 0x80269898 0x80268788 0x80268788 0x80269B5C 0x802693A4 0x8017F434 0x8016FD00 0x8016FBB4 0x80170060>
nop
# Chat Bubble Window TAB Bug Fix
.data <VERS 0x80250264 0x80250CB0 0x80251CA4 0x802519A4 0x80250AEC 0x80250AEC 0x80251C68 0x802514B0 0x8016A77C 0x8015B1BC 0x8015B0CC 0x8015B578>
.data 0x00000004
.address <VERS 0x80250264 0x80250CB0 0x80251CA4 0x802519A4 0x80250AEC 0x80250AEC 0x80251C68 0x802514B0 0x8016A77C 0x8015B1BC 0x8015B0CC 0x8015B578>
nop
# Chat Log Window: Scroll Lock (Hold L+R)
.data 0x8000D6A0
.deltaof scroll_lock_hook, scroll_lock_hook_end
.address 0x8000D6A0
scroll_lock_hook:
lis r3, <VERS 0x8051 0x8051 0x8051 0x8051 0x8051 0x8051 0x8051 0x8051 0x8048 0x804A 0x804A 0x804A>
lhz r3, [r3 <VERS -0x7530 -0x3A70 -0x1430 -0x1690 -0x6C50 -0x6770 -0x1D90 -0x0D70 +0x1700 -0x08C0 +0x0560 +0x2980>]
andi. r0, r3, 0x0003
cmplwi r0, 3
beqlr
stfs [r28 + 0x0084], f1
blr
scroll_lock_hook_end:
# Chat Log Window: Scroll Lock (Hold L+R)
.data <VERS 0x80267EC8 0x80268B74 0x80269BD0 0x80269984 0x80268874 0x80268874 0x80269C48 0x80269490 0x8017F51C 0x8016FDE8 0x8016FC9C 0x80170148>
.data 0x00000004
.address <VERS 0x80267EC8 0x80268B74 0x80269BD0 0x80269984 0x80268874 0x80268874 0x80269C48 0x80269490 0x8017F51C 0x8016FDE8 0x8016FC9C 0x80170148>
bl scroll_lock_hook
.data 0x00000000
.data 0x00000000