mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-19 06:27:02 -04:00
properly save rando file during autosave
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
#include "dusk/autosave.h"
|
||||
|
||||
#include "dusk/config.hpp"
|
||||
#include "dusk/ui/ui.hpp"
|
||||
#include "imgui/ImGuiConsole.hpp"
|
||||
|
||||
@@ -51,6 +53,13 @@ bool writeAutoSave() {
|
||||
dComIfGs_setMemoryToCard(mSaveBuffer, dComIfGs_getDataNum());
|
||||
mDoMemCdRWm_SetCheckSumGameData(mSaveBuffer, dComIfGs_getDataNum());
|
||||
|
||||
// Save randomizer hash
|
||||
dusk::getSettings().randomizer.seedHashes[dComIfGs_getDataNum()].setValue(randomizer_GetContext().mHash);
|
||||
dusk::config::Save();
|
||||
if (randomizer_IsActive()) {
|
||||
g_randomizerState.mFileNum = dComIfGs_getDataNum();
|
||||
}
|
||||
|
||||
u8* save = mSaveBuffer;
|
||||
for (int i = 0; i < 3; i++) {
|
||||
mDoMemCdRWm_TestCheckSumGameData(save);
|
||||
|
||||
Reference in New Issue
Block a user