mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 19:07:56 -05:00
configuration_shared: Break up tracker structs to respective classes
One less global variable.
This commit is contained in:
@ -148,7 +148,7 @@ void ConfigureSystem::ApplyConfiguration() {
|
||||
ui->combo_time_zone);
|
||||
ConfigurationShared::ApplyPerGameSetting(&Settings::values.sound_index, ui->combo_sound);
|
||||
|
||||
switch (ConfigurationShared::trackers.use_rng_seed) {
|
||||
switch (trackers.use_rng_seed) {
|
||||
case ConfigurationShared::CheckState::On:
|
||||
case ConfigurationShared::CheckState::Off:
|
||||
Settings::values.rng_seed.SetGlobal(false);
|
||||
@ -168,7 +168,7 @@ void ConfigureSystem::ApplyConfiguration() {
|
||||
break;
|
||||
}
|
||||
|
||||
switch (ConfigurationShared::trackers.use_custom_rtc) {
|
||||
switch (trackers.use_custom_rtc) {
|
||||
case ConfigurationShared::CheckState::On:
|
||||
case ConfigurationShared::CheckState::Off:
|
||||
Settings::values.custom_rtc.SetGlobal(false);
|
||||
@ -238,10 +238,10 @@ void ConfigureSystem::SetupPerGameUI() {
|
||||
Settings::values.rng_seed.UsingGlobal(),
|
||||
Settings::values.rng_seed.GetValue().has_value(),
|
||||
Settings::values.rng_seed.GetValue(true).has_value(),
|
||||
ConfigurationShared::trackers.use_rng_seed);
|
||||
trackers.use_rng_seed);
|
||||
ConfigurationShared::SetColoredTristate(ui->custom_rtc_checkbox, "custom_rtc_checkbox",
|
||||
Settings::values.custom_rtc.UsingGlobal(),
|
||||
Settings::values.custom_rtc.GetValue().has_value(),
|
||||
Settings::values.custom_rtc.GetValue(true).has_value(),
|
||||
ConfigurationShared::trackers.use_custom_rtc);
|
||||
trackers.use_custom_rtc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user