ShadowSpeedrun / ShadowSX

ROM Hack + Dolphin Config for a Speedrunner focused version of the GameCube ENG NTSC Shadow the Hedgehog.
4 stars 2 forks source link

Refactor: TimerPools use StageSequenceManager #18

Closed dreamsyntax closed 3 months ago

dreamsyntax commented 3 months ago

Refactors code that used the SX introduced variables for

Story Mode Flag In Last Story Mode Flag Select Mode Flag

So we can remove them entirely.

We now use the game's StageSequenceManager Phase variable to determine Story Mode, Select Mode, and Expert Mode. Additionally we use the Menu Story state for tracking if we are in Last Story.

As a benefit, we now only reset timers on 'true' restart of Story -> New, Last Story, and Expert -> New