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,26 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
mov r2, 0
mova r0, [addrs]
mov.l r1, [r0]
mov.l [r1], r2
mov.l r1, [r0 + 4]
mov.l [r1], r2
mov r2, 1
mov.l r1, [r0 + 8]
rets
mov.w [r1], r2
.align 4
addrs:
.data 0x8C4ED300
.data 0x8C4ED344
.data 0x8C4E8D88
@@ -1,26 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
mov r2, 0
mova r0, [addrs]
mov.l r1, [r0]
mov.l [r1], r2
mov.l r1, [r0 + 4]
mov.l [r1], r2
mov r2, 1
mov.l r1, [r0 + 8]
rets
mov.w [r1], r2
.align 4
addrs:
.data 0x8C4E6DA0
.data 0x8C4E6DE4
.data 0x8C4E2828
@@ -1,26 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
mov r2, 0
mova r0, [addrs]
mov.l r1, [r0]
mov.l [r1], r2
mov.l r1, [r0 + 4]
mov.l [r1], r2
mov r2, 1
mov.l r1, [r0 + 8]
rets
mov.w [r1], r2
.align 4
addrs:
.data 0x8C4DC800
.data 0x8C4DC844
.data 0x8C4D8288
@@ -4,6 +4,8 @@
.meta description=""
.meta hide_from_patches_menu
.versions 2OJ5 2OJF 2OEF 2OPF
entry_ptr:
reloc0:
.offsetof start
@@ -21,6 +23,6 @@ start:
mov.w [r1], r2
.align 4
addrs:
.data 0x8C4ED300
.data 0x8C4ED344
.data 0x8C4E8D88
.data <VERS 0x8C4ED300 0x8C4E6DA0 0x8C4ED300 0x8C4DC800>
.data <VERS 0x8C4ED344 0x8C4E6DE4 0x8C4ED344 0x8C4DC844>
.data <VERS 0x8C4E8D88 0x8C4E2828 0x8C4E8D88 0x8C4D8288>
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x4748], r0
stw [r13 - 0x4744], r0
li r0, 1
sth [r13 - 0x4938], r0
blr
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x4748], r0
stw [r13 - 0x4744], r0
li r0, 1
sth [r13 - 0x4938], r0
blr
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x4728], r0
stw [r13 - 0x4724], r0
li r0, 1
sth [r13 - 0x4918], r0
blr
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x4760], r0
stw [r13 - 0x475C], r0
li r0, 1
sth [r13 - 0x4950], r0
blr
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x4758], r0
stw [r13 - 0x4754], r0
li r0, 1
sth [r13 - 0x4948], r0
blr
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x4738], r0
stw [r13 - 0x4734], r0
li r0, 1
sth [r13 - 0x4928], r0
blr
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x4738], r0
stw [r13 - 0x4734], r0
li r0, 1
sth [r13 - 0x4928], r0
blr
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - 0x46E8], r0
stw [r13 - 0x46E4], r0
li r0, 1
sth [r13 - 0x48D8], r0
blr
@@ -0,0 +1,19 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
.versions 3OJ2 3OJ3 3OJ4 3OJ5 3OE0 3OE1 3OE2 3OP0
entry_ptr:
reloc0:
.offsetof start
start:
li r0, 0
stw [r13 - <VERS 0x4760 0x4758 0x4738 0x4738 0x4748 0x4748 0x4728 0x46E8>], r0
stw [r13 - <VERS 0x475C 0x4754 0x4734 0x4734 0x4744 0x4744 0x4724 0x46E4>], r0
li r0, 1
sth [r13 - <VERS 0x4950 0x4948 0x4928 0x4928 0x4938 0x4938 0x4918 0x48D8>], r0
blr
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov [0x00632934], eax # is_in_quest = false
mov [0x00632930], eax # dat_source_type = NONE
inc eax
mov [0x00723F88], ax # should_leave_game = true
ret
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov [0x006321CC], eax # is_in_quest = false
mov [0x006321C8], eax # dat_source_type = NONE
inc eax
mov [0x00723808], ax # should_leave_game = true
ret
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov [0x0062D374], eax # is_in_quest = false
mov [0x0062D370], eax # dat_source_type = NONE
inc eax
mov [0x0071E8E8], ax # should_leave_game = true
ret
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov [0x0062D914], eax # is_in_quest = false
mov [0x0062D910], eax # dat_source_type = NONE
inc eax
mov [0x0071EF48], ax # should_leave_game = true
ret
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov [0x0063544C], eax # is_in_quest = false
mov [0x00635448], eax # dat_source_type = NONE
inc eax
mov [0x00726A88], ax # should_leave_game = true
ret
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov [0x00632934], eax # is_in_quest = false
mov [0x00632930], eax # dat_source_type = NONE
inc eax
mov [0x00723F88], ax # should_leave_game = true
ret
@@ -1,17 +0,0 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov [0x00632CCC], eax # is_in_quest = false
mov [0x00632CC8], eax # dat_source_type = NONE
inc eax
mov [0x00724308], ax # should_leave_game = true
ret
@@ -0,0 +1,19 @@
# This function implements $exit in a game when no quest is loaded.
.meta name="Exit anywhere"
.meta description=""
.meta hide_from_patches_menu
.versions 4OJB 4OJD 4OJU 4OED 4OEU 4OPD 4OPU
entry_ptr:
reloc0:
.offsetof start
start:
xor eax, eax
mov [<VERS 0x0062D374 0x0062D914 0x0063544C 0x00632934 0x006321CC 0x00632934 0x00632CCC>], eax # is_in_quest = false
mov [<VERS 0x0062D370 0x0062D910 0x00635448 0x00632930 0x006321C8 0x00632930 0x00632CC8>], eax # dat_source_type = NONE
inc eax
mov [<VERS 0x0071E8E8 0x0071EF48 0x00726A88 0x00723F88 0x00723808 0x00723F88 0x00724308>], ax # should_leave_game = true
ret