From 5eadd67df6da429891fdfba02bf650f4fefe4ab6 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Wed, 17 Jul 2024 15:44:47 +0200 Subject: [PATCH] EmuInstance: Use GetLocalFilePath to get the wfcsettings path Fixes the file being created in the current working directory. --- src/frontend/qt_sdl/EmuInstance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/qt_sdl/EmuInstance.cpp b/src/frontend/qt_sdl/EmuInstance.cpp index 4666c1d1..96e1ef59 100644 --- a/src/frontend/qt_sdl/EmuInstance.cpp +++ b/src/frontend/qt_sdl/EmuInstance.cpp @@ -518,7 +518,7 @@ std::string EmuInstance::getEffectiveFirmwareSavePath() { if (!globalCfg.GetBool("Emu.ExternalBIOSEnable")) { - return kWifiSettingsPath; + return GetLocalFilePath(kWifiSettingsPath); } if (consoleType == 1) { @@ -1261,7 +1261,7 @@ void EmuInstance::reset() } else { - newsave = kWifiSettingsPath + instanceFileSuffix(); + newsave = GetLocalFilePath(kWifiSettingsPath + instanceFileSuffix()); } if (oldsave != newsave)