summaryrefslogtreecommitdiff
path: root/src/common/settings_common.h
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-08-16 02:36:56 -0400
committerCharles Lombardo <clombardo169@gmail.com>2023-08-29 19:40:17 -0400
commit6c8f2b355ace41e33e8a1ad2f95d2816893a953b (patch)
treef7e96841efb0aa2d6a9b0a16df8247c2ec9da2a1 /src/common/settings_common.h
parent3d5ecc1f086d0dc98568e9ee1fb61dcbb86d268d (diff)
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.h')
-rw-r--r--src/common/settings_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index 3082e0ce1..5b170dfd5 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -12,6 +12,7 @@
namespace Settings {
enum class Category : u32 {
+ Android,
Audio,
Core,
Cpu,
@@ -68,6 +69,7 @@ public:
explicit Linkage(u32 initial_count = 0);
~Linkage();
std::map<Category, std::vector<BasicSetting*>> by_category{};
+ std::map<std::string, Settings::BasicSetting*> by_key{};
std::vector<std::function<void()>> restore_functions{};
u32 count;
};