mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-12 09:09:47 +12:00
Remove duplicate fs calls
This commit is contained in:
parent
d24b780b7a
commit
6a41065499
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue