factor out Ep3 USA check in patches

This commit is contained in:
Martin Michelsen
2023-02-17 21:48:10 -08:00
parent bebb69649c
commit d5773b93da
3 changed files with 10 additions and 17 deletions
+1 -8
View File
@@ -15,14 +15,7 @@ start:
# But we leave it in to be consistent with patches for Episodes 1&2.
.include InitClearCaches
# First, make sure this is actually Episode 3 USA; if not, do nothing
lis r4, 0x4750
ori r4, r4, 0x5345 # 'GPSE'
lis r5, 0x8000
lwz r5, [r5]
li r3, -1
cmp r4, r5
bnelr
.include Episode3USAOnly
# Call seq_var_set(7000) - this gives the local player a VIP card
li r3, 7000