more small fry...

This commit is contained in:
Arisotura
2024-05-24 20:32:28 +02:00
parent f0b81a9050
commit 03d5c2516c
4 changed files with 8 additions and 16 deletions

View File

@ -490,7 +490,7 @@ bool EmuInstance::loadState(const std::string& filename)
backupState = std::move(backup); // This will clean up any existing backup
assert(backup == nullptr);
if (Config::SavestateRelocSRAM && ndsSave)
if (globalCfg.GetBool("Savestate.RelocSRAM") && ndsSave)
{
previousSaveFile = ndsSave->GetPath();
@ -543,7 +543,7 @@ bool EmuInstance::saveState(const std::string& filename)
fclose(file);
if (Config::SavestateRelocSRAM && ndsSave)
if (globalCfg.GetBool("Savestate.RelocSRAM") && ndsSave)
{
std::string savefile = filename.substr(lastSep(filename)+1);
savefile = getAssetPath(false, Config::SaveFilePath, ".sav", savefile);