summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorGlought <Glought@users.noreply.github.com>2026-01-02 06:39:42 -0800
committerGitHub <noreply@github.com>2026-01-02 14:39:42 +0000
commit31db9e4adeb99b6f61c9b60ae55459a974ba7d3d (patch)
tree717619b04ffbd65c7ae656d5f9a3049905122171 /soh/src/code
parentf6664448765ccaeb38860db1ebc386b8ba4c1b75 (diff)
Added "firstInput" stat and repurposed the "fileCreatedAt" stat. (#6070)
- The "firstInput" stat is set on first input in game. Used for RTA Timing. - The "fileCreatedAt" stat is now set when then save file is created (After the player is done entering the file name). Useful for seeding non rando randomizers like Mirrorworld, Enemy Randomizer, extraTraps, etc.
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_play.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/soh/src/code/z_play.c b/soh/src/code/z_play.c
index 89583e598..38a040a8a 100644
--- a/soh/src/code/z_play.c
+++ b/soh/src/code/z_play.c
@@ -781,10 +781,10 @@ void Play_Update(PlayState* play) {
}
// Start RTA timing on first non-c-up input after intro cutscene
- if (!gSaveContext.ship.stats.fileCreatedAt && !Player_InCsMode(play) &&
+ if (!gSaveContext.ship.stats.firstInput && !Player_InCsMode(play) &&
((input[0].press.button && input[0].press.button != 0x8) || input[0].rel.stick_x != 0 ||
input[0].rel.stick_y != 0)) {
- gSaveContext.ship.stats.fileCreatedAt = GetUnixTimestamp();
+ gSaveContext.ship.stats.firstInput = GetUnixTimestamp();
}
}
// #endregion