Skip to content

Commit

Permalink
libretro: Make sure the GState->header matches our implementation-spe…
Browse files Browse the repository at this point in the history
…cific tweaks.
  • Loading branch information
icculus committed Dec 20, 2022
1 parent 7e1c062 commit 7f84143
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mojozork-libretro.c
Expand Up @@ -1298,6 +1298,10 @@ static void restart_game(void)
GState->status_bar_len = sizeof (status_bar);
GState->story[1] &= ~(1<<4); // so the game knows that a status bar is available

// make sure the header matches our tweaks.
const uint8 *ptr = GState->story;
GState->header.version = READUI8(ptr);
GState->header.flags1 = READUI8(ptr);
step_zmachine(); // run until we get to the first input prompt.
}
}
Expand Down

0 comments on commit 7f84143

Please sign in to comment.