diff --git a/src/emulator.cpp b/src/emulator.cpp index a0693fd4..18f7c023 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -105,8 +105,10 @@ std::filesystem::path Emulator::getConfigPath() { if constexpr (Helpers::isAndroid()) { return getAndroidAppPath() / "config.toml"; } else { - if (std::filesystem::exists(std::filesystem::current_path() / "config.toml")) { - return std::filesystem::current_path() / "config.toml"; + std::filesystem::path localPath = std::filesystem::current_path() / "config.toml"); + + if (std::filesystem::exists(localPath)) { + return localPath; } else { return getAppDataRoot() / "config.toml"; } @@ -472,4 +474,4 @@ void Emulator::reloadSettings() { } } #endif -} \ No newline at end of file +}