diff options
Diffstat (limited to 'src/frontend_common')
| -rw-r--r-- | src/frontend_common/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/frontend_common/config.cpp | 2 | ||||
| -rw-r--r-- | src/frontend_common/config.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/frontend_common/CMakeLists.txt b/src/frontend_common/CMakeLists.txt index 1537271fc..22e9337c4 100644 --- a/src/frontend_common/CMakeLists.txt +++ b/src/frontend_common/CMakeLists.txt | |||
| @@ -7,4 +7,4 @@ add_library(frontend_common STATIC | |||
| 7 | ) | 7 | ) |
| 8 | 8 | ||
| 9 | create_target_directory_groups(frontend_common) | 9 | create_target_directory_groups(frontend_common) |
| 10 | target_link_libraries(frontend_common PUBLIC core SimpleIni PRIVATE common Boost::headers) | 10 | target_link_libraries(frontend_common PUBLIC core SimpleIni::SimpleIni PRIVATE common Boost::headers) |
diff --git a/src/frontend_common/config.cpp b/src/frontend_common/config.cpp index 7474cb0f9..1a0491c2c 100644 --- a/src/frontend_common/config.cpp +++ b/src/frontend_common/config.cpp | |||
| @@ -924,12 +924,14 @@ std::string Config::AdjustOutputString(const std::string& string) { | |||
| 924 | 924 | ||
| 925 | // Windows requires that two forward slashes are used at the start of a path for unmapped | 925 | // Windows requires that two forward slashes are used at the start of a path for unmapped |
| 926 | // network drives so we have to watch for that here | 926 | // network drives so we have to watch for that here |
| 927 | #ifndef ANDROID | ||
| 927 | if (string.substr(0, 2) == "//") { | 928 | if (string.substr(0, 2) == "//") { |
| 928 | boost::replace_all(adjusted_string, "//", "/"); | 929 | boost::replace_all(adjusted_string, "//", "/"); |
| 929 | adjusted_string.insert(0, "/"); | 930 | adjusted_string.insert(0, "/"); |
| 930 | } else { | 931 | } else { |
| 931 | boost::replace_all(adjusted_string, "//", "/"); | 932 | boost::replace_all(adjusted_string, "//", "/"); |
| 932 | } | 933 | } |
| 934 | #endif | ||
| 933 | 935 | ||
| 934 | // Needed for backwards compatibility with QSettings deserialization | 936 | // Needed for backwards compatibility with QSettings deserialization |
| 935 | for (const auto& special_character : special_characters) { | 937 | for (const auto& special_character : special_characters) { |
diff --git a/src/frontend_common/config.h b/src/frontend_common/config.h index 20a1a8056..b3812af17 100644 --- a/src/frontend_common/config.h +++ b/src/frontend_common/config.h | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | #include <string> | 7 | #include <string> |
| 8 | #include "common/settings.h" | 8 | #include "common/settings.h" |
| 9 | 9 | ||
| 10 | #define SI_NO_CONVERSION | ||
| 10 | #include <SimpleIni.h> | 11 | #include <SimpleIni.h> |
| 11 | #include <boost/algorithm/string/replace.hpp> | 12 | #include <boost/algorithm/string/replace.hpp> |
| 12 | 13 | ||