From c801cb2a84bb46b4229b709f260602a6bfd0bea5 Mon Sep 17 00:00:00 2001 From: gymnast86 Date: Tue, 21 Apr 2026 23:25:34 -0700 Subject: [PATCH] update randomizer_isActive() --- src/d/d_com_inf_game.cpp | 1 - src/dusk/randomizer/game/randomizer_context.cpp | 2 +- src/dusk/randomizer/game/randomizer_context.hpp | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/d/d_com_inf_game.cpp b/src/d/d_com_inf_game.cpp index ea3370b592..99a7563cbd 100644 --- a/src/d/d_com_inf_game.cpp +++ b/src/d/d_com_inf_game.cpp @@ -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 diff --git a/src/dusk/randomizer/game/randomizer_context.cpp b/src/dusk/randomizer/game/randomizer_context.cpp index d1cd8a98b3..f51033866e 100644 --- a/src/dusk/randomizer/game/randomizer_context.cpp +++ b/src/dusk/randomizer/game/randomizer_context.cpp @@ -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 RandomizerContext::WriteToFile() { diff --git a/src/dusk/randomizer/game/randomizer_context.hpp b/src/dusk/randomizer/game/randomizer_context.hpp index b9384b6b0b..0ddaf7bf54 100644 --- a/src/dusk/randomizer/game/randomizer_context.hpp +++ b/src/dusk/randomizer/game/randomizer_context.hpp @@ -15,7 +15,6 @@ public: RandomizerContext() = default; - bool mActive{false}; bool mCreatingSave{false}; u32 mSeedID{0}; std::string mHash{""};