summaryrefslogtreecommitdiff
path: root/src/common/settings_common.cpp
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-08-16 02:36:56 -0400
committerGravatar Charles Lombardo2023-08-29 19:40:17 -0400
commit6c8f2b355ace41e33e8a1ad2f95d2816893a953b (patch)
treef7e96841efb0aa2d6a9b0a16df8247c2ec9da2a1 /src/common/settings_common.cpp
parentMerge pull request #11406 from german77/sdl2-28-2 (diff)
downloadyuzu-6c8f2b355ace41e33e8a1ad2f95d2816893a953b.tar.gz
yuzu-6c8f2b355ace41e33e8a1ad2f95d2816893a953b.tar.xz
yuzu-6c8f2b355ace41e33e8a1ad2f95d2816893a953b.zip
android: Expose interface for getting settings from native code
Completely removes code related to parsing the settings file on the java side. Now all settings are accessed via NativeConfig.kt and config.cpp has been modified to be closer to the core counterpart. Since the core currently uses QSettings, we can't remove reliance from Wini yet. This also includes simplifications to each settings interface to get closer to native code and prepare for per-game settings.
Diffstat (limited to 'src/common/settings_common.cpp')
-rw-r--r--src/common/settings_common.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp
index 137b65d5f..5960b78aa 100644
--- a/src/common/settings_common.cpp
+++ b/src/common/settings_common.cpp
@@ -14,6 +14,7 @@ BasicSetting::BasicSetting(Linkage& linkage, const std::string& name, enum Categ
14 : label{name}, category{category_}, id{linkage.count}, save{save_}, 14 : label{name}, category{category_}, id{linkage.count}, save{save_},
15 runtime_modifiable{runtime_modifiable_}, specialization{specialization_}, 15 runtime_modifiable{runtime_modifiable_}, specialization{specialization_},
16 other_setting{other_setting_} { 16 other_setting{other_setting_} {
17 linkage.by_key.insert({name, this});
17 linkage.by_category[category].push_back(this); 18 linkage.by_category[category].push_back(this);
18 linkage.count++; 19 linkage.count++;
19} 20}