yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

settings: Move IsConfiguringGlobal to settings_common

This commit is contained in:
lat9nq 2023-06-13 19:37:41 -04:00
parent 3b0650b70d
commit b4f2ad3ff5
4 changed files with 13 additions and 12 deletions

View File

@ -63,7 +63,6 @@ SWITCHABLE(u8, true);
#undef SWITCHABLE
Values values;
static bool configuring_global = true;
std::string GetTimeZoneString() {
const auto time_zone_index = static_cast<std::size_t>(values.time_zone_index.GetValue());
@ -131,14 +130,6 @@ void LogSettings() {
log_path("DataStorage_SDMCDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::SDMCDir));
}
bool IsConfiguringGlobal() {
return configuring_global;
}
void SetConfiguringGlobal(bool is_global) {
configuring_global = is_global;
}
bool IsGPULevelExtreme() {
return values.gpu_accuracy.GetValue() == GpuAccuracy::Extreme;
}

View File

@ -450,9 +450,6 @@ struct Values {
extern Values values;
bool IsConfiguringGlobal();
void SetConfiguringGlobal(bool is_global);
bool IsGPULevelExtreme();
bool IsGPULevelHigh();

View File

@ -42,4 +42,14 @@ const std::string& BasicSetting::GetLabel() const {
return label;
}
static bool configuring_global = true;
bool IsConfiguringGlobal() {
return configuring_global;
}
void SetConfiguringGlobal(bool is_global) {
configuring_global = is_global;
}
} // namespace Settings

View File

@ -43,6 +43,9 @@ enum class Category : u32 {
MaxEnum,
};
bool IsConfiguringGlobal();
void SetConfiguringGlobal(bool is_global);
class BasicSetting;
class Linkage {