configuration: setup global configuration checkbox

Global config checkbox now enables/disables the appropriate tabs in the game
properties dialog. The use global configuration setting is now saved to the
config, defaulting to true. This also addresses some changes requested in the PR.
This commit is contained in:
lat9nq
2020-06-17 14:16:17 -04:00
parent 9ca688a29e
commit d96eb90144
7 changed files with 414 additions and 9 deletions

View File

@@ -382,7 +382,7 @@ enum class GPUAccuracy : u32 {
Extreme = 2,
};
typedef struct Values_t {
struct Values {
// System
bool use_docked_mode;
std::optional<u32> rng_seed;
@@ -489,7 +489,10 @@ typedef struct Values_t {
// Add-Ons
std::map<u64, std::vector<std::string>> disabled_addons;
} Values;
// Per-Game Settings
bool use_global_values;
};
extern Values global_values;
extern Values game_values;