Skip to content

Commit

Permalink
Remove the PC manip to trigger the movie (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanis002 authored May 31, 2024
1 parent 7a3926c commit 37b73b3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/code/z_play.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,15 +359,6 @@ void Play_Init(GameState* thisx) {

PRINTF("\nSCENE_NO=%d COUNTER=%d\n", ((void)0, gSaveContext.save.entranceIndex), gSaveContext.sceneLayer);

// When entering Gerudo Valley in the credits, trigger the GC emulator to play the ending movie.
// The emulator constantly checks whether PC is 0x81000000, so this works even though it's not a valid address.
if ((gEntranceTable[((void)0, gSaveContext.save.entranceIndex)].sceneId == SCENE_GERUDO_VALLEY) &&
gSaveContext.sceneLayer == 6) {
PRINTF("エンディングはじまるよー\n"); // "The ending starts"
((void (*)(void))0x81000000)();
PRINTF("出戻り?\n"); // "Return?"
}

Cutscene_HandleEntranceTriggers(this);
KaleidoScopeCall_Init(this);
Interface_Init(this);
Expand Down

0 comments on commit 37b73b3

Please sign in to comment.