implement version-specific patches; clean up menu abstraction

This commit is contained in:
Martin Michelsen
2023-05-26 09:55:12 -07:00
parent 03c26b587a
commit dbd6c59a0b
25 changed files with 548 additions and 394 deletions
+20
View File
@@ -0,0 +1,20 @@
# This patch gives you a VIP card in PSO Episode 3 USA.
# This patch is only for PSO Episode 3 USA, which means it requires the
# EnableEpisode3SendFunctionCall option to be enabled in config.json. If that
# option is disabled, the Patches menu won't appear for the client. If this
# patch is run on a different client version, it will do nothing.
entry_ptr:
reloc0:
.offsetof start
start:
.include Episode3USAOnly
# Call seq_var_set(7000) - this gives the local player a VIP card
li r3, 7000
lis r0, 0x8010
ori r0, r0, 0xBD18
mtctr r0
bctr