Skip to content

Commit

Permalink
correctly forward gameplay codes during playback
Browse files Browse the repository at this point in the history
gets picked up by the recording code and extracts the codes that actually matter instead of the playback codes
  • Loading branch information
JLaferri committed Feb 2, 2024
1 parent 6d3e140 commit 7cd7e77
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Output/Playback/GALE01r2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ C0230044 D0230030
BA8100B0 800100E4
382100E0 7C0803A6
881F2219 00000000
C216E748 0000009F #Playback/Core/RestoreGameInfo.asm
C216E748 000000A1 #Playback/Core/RestoreGameInfo.asm
3D808022 618C54B8
7D8903A6 4E800421
7C0802A6 90010004
Expand Down Expand Up @@ -328,7 +328,9 @@ C216E748 0000009F #Playback/Core/RestoreGameInfo.asm
807E021D 3D808037
618CF1E4 7D8903A6
4E800421 7C7D1B78
93BC0008 3860008A
93BC0008 3C808000
60845600 387DFFF8
90640000 3860008A
987D0000 7FA3EB78
38800001 38A00001
3D808000 618C55F0
Expand Down
6 changes: 4 additions & 2 deletions Output/Playback/GALJ01r2.ini
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ C0230044 D0230030
BA8100B0 800100E4
382100E0 7C0803A6
881F2219 00000000
C216E748 0000009F #Playback/Core/RestoreGameInfo.asm
C216E748 000000A1 #Playback/Core/RestoreGameInfo.asm
3D808022 618C54B8
7D8903A6 4E800421
7C0802A6 90010004
Expand Down Expand Up @@ -327,7 +327,9 @@ C216E748 0000009F #Playback/Core/RestoreGameInfo.asm
807E021D 3D808037
618CF1E4 7D8903A6
4E800421 7C7D1B78
93BC0008 3860008A
93BC0008 3C808000
60845600 387DFFF8
90640000 3860008A
987D0000 7FA3EB78
38800001 38A00001
3D808000 618C55F0
Expand Down
5 changes: 5 additions & 0 deletions Playback/Core/RestoreGameInfo.asm
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ RESTORE_GAME_INFO_NAMETAG_INC_LOOP:
mr REG_GeckoBuffer, r3
stw REG_GeckoBuffer, PDB_DYNAMIC_GECKO_ADDR(REG_DirectoryBuffer)

# Overwrite the gecko heap location for simultaneous recording + playback
load r4, GeckoHeapPtr
subi r3, REG_GeckoBuffer, 0x8 # Recording expects d0c0de d0c0de but we dont have that here
stw r3, 0(r4)

# Step 2: Ask dolphin for the code list
li r3, CMD_GET_GECKO_CODES
stb r3, 0(REG_GeckoBuffer)
Expand Down

0 comments on commit 7cd7e77

Please sign in to comment.