mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-08 12:16:17 -04:00
update randomizer_isActive()
This commit is contained in:
@@ -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{""};
|
||||
|
||||
Reference in New Issue
Block a user