update randomizer_isActive()

This commit is contained in:
gymnast86
2026-04-21 23:25:34 -07:00
parent f069be5789
commit c801cb2a84
3 changed files with 1 additions and 3 deletions
-1
View File
@@ -2883,7 +2883,6 @@ void dComIfGs_setupRandomizerSave() {
// Setup file based on randomizer data
auto& randoData = randomizer_GetContext();
randoData.mActive = true;
randoData.mCreatingSave = true;
// Set starting flags
@@ -21,7 +21,7 @@ RandomizerContext& randomizer_GetContext() {
}
bool randomizer_IsActive() {
return dusk::IsGameLaunched && (!playerIsOnTitleScreen() || randomizer_GetContext().mCreatingSave) && randomizer_GetContext().mActive;
return dusk::IsGameLaunched && (!playerIsOnTitleScreen() || randomizer_GetContext().mCreatingSave) && !randomizer_GetContext().mHash.empty();
}
std::optional<std::string> RandomizerContext::WriteToFile() {
@@ -15,7 +15,6 @@ public:
RandomizerContext() = default;
bool mActive{false};
bool mCreatingSave{false};
u32 mSeedID{0};
std::string mHash{""};