mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06:00 
			
		
		
		
	settings: Move IsConfiguringGlobal to settings_common
This commit is contained in:
		@@ -63,7 +63,6 @@ SWITCHABLE(u8, true);
 | 
				
			|||||||
#undef SWITCHABLE
 | 
					#undef SWITCHABLE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Values values;
 | 
					Values values;
 | 
				
			||||||
static bool configuring_global = true;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
std::string GetTimeZoneString() {
 | 
					std::string GetTimeZoneString() {
 | 
				
			||||||
    const auto time_zone_index = static_cast<std::size_t>(values.time_zone_index.GetValue());
 | 
					    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));
 | 
					    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() {
 | 
					bool IsGPULevelExtreme() {
 | 
				
			||||||
    return values.gpu_accuracy.GetValue() == GpuAccuracy::Extreme;
 | 
					    return values.gpu_accuracy.GetValue() == GpuAccuracy::Extreme;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -450,9 +450,6 @@ struct Values {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
extern Values values;
 | 
					extern Values values;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool IsConfiguringGlobal();
 | 
					 | 
				
			||||||
void SetConfiguringGlobal(bool is_global);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
bool IsGPULevelExtreme();
 | 
					bool IsGPULevelExtreme();
 | 
				
			||||||
bool IsGPULevelHigh();
 | 
					bool IsGPULevelHigh();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -42,4 +42,14 @@ const std::string& BasicSetting::GetLabel() const {
 | 
				
			|||||||
    return label;
 | 
					    return label;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					static bool configuring_global = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool IsConfiguringGlobal() {
 | 
				
			||||||
 | 
					    return configuring_global;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void SetConfiguringGlobal(bool is_global) {
 | 
				
			||||||
 | 
					    configuring_global = is_global;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
} // namespace Settings
 | 
					} // namespace Settings
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,6 +43,9 @@ enum class Category : u32 {
 | 
				
			|||||||
    MaxEnum,
 | 
					    MaxEnum,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool IsConfiguringGlobal();
 | 
				
			||||||
 | 
					void SetConfiguringGlobal(bool is_global);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class BasicSetting;
 | 
					class BasicSetting;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Linkage {
 | 
					class Linkage {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user