VERY experimental Nintendo Switch 2 emulator
C++
frontend_common: Add special config case for unmapped windows network drives
t895f745e602ecce
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cppindex 8eb62e8ef2..b3f4a54a44 100644--- a/src/frontend_common/config.cpp+++ b/src/frontend_common/config.cpp@@ -856,7 +856,15 @@ std::string Config::AdjustKey(const std::string& key) {std::string Config::AdjustOutputString(const std::string& string) {std::string adjusted_string(string);boost::replace_all(adjusted_string, "\\", "/");- boost::replace_all(adjusted_string, "//", "/");++ // Windows requires that two forward slashes are used at the start of a path for unmapped+ // network drives so we have to watch for that here+ if (string.substr(0, 2) == "//") {+ boost::replace_all(adjusted_string, "//", "/");+ adjusted_string.insert(0, "/");+ } else {+ boost::replace_all(adjusted_string, "//", "/");+ }// Needed for backwards compatibility with QSettings deserializationfor (const auto& special_character : special_characters) {