diff options
| author | 2023-12-29 01:08:12 -0500 | |
|---|---|---|
| committer | 2023-12-30 15:11:36 -0500 | |
| commit | 24a78dba319fc1183a47ec94e6a61add5225eb75 (patch) | |
| tree | f96e07b981aabd610f46df72c5cb8f9a7f288c22 | |
| parent | android: Migrate in-game overlay settings to ini (diff) | |
| download | yuzu-24a78dba319fc1183a47ec94e6a61add5225eb75.tar.gz yuzu-24a78dba319fc1183a47ec94e6a61add5225eb75.tar.xz yuzu-24a78dba319fc1183a47ec94e6a61add5225eb75.zip | |
frontend_common: config: Do not count "." as a special character
It would break reading floating point settings
| -rw-r--r-- | src/frontend_common/config.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/frontend_common/config.h b/src/frontend_common/config.h index e73cf6929..0c4d505b8 100644 --- a/src/frontend_common/config.h +++ b/src/frontend_common/config.h | |||
| @@ -213,9 +213,8 @@ private: | |||
| 213 | const std::optional<bool>& use_global); | 213 | const std::optional<bool>& use_global); |
| 214 | void WriteString(const std::string& key, const std::string& value); | 214 | void WriteString(const std::string& key, const std::string& value); |
| 215 | 215 | ||
| 216 | inline static std::array<char, 19> special_characters = {'!', '#', '$', '%', '^', '&', '*', | 216 | inline static std::array<char, 18> special_characters = { |
| 217 | '|', ';', '\'', '\"', ',', '<', '.', | 217 | '!', '#', '$', '%', '^', '&', '*', '|', ';', '\'', '\"', ',', '<', '>', '?', '`', '~', '='}; |
| 218 | '>', '?', '`', '~', '='}; | ||
| 219 | 218 | ||
| 220 | struct ConfigArray { | 219 | struct ConfigArray { |
| 221 | std::string name; | 220 | std::string name; |