forked from eden-emu/eden
		
	settings: Add a registry of settings
LoadString: Sanitize input settings: Handle empty string, remove redundant category settings: Rename Input to Controls, FS to DataStorage settings: Fix Controls groups information settings: Move use_docked_mode to System (again) settings: Document settings: Add type identification function settings: Move registry into values settings: Move global_reset_registry into values settings: Separate AdvGraphics from Renderer settings: More document squash settings: Use linkage object uisettings: Move registry into settings Probably wont build without uisettings: Use settings linkage object config: Load settings with a map Uses the new all_settings vector to load settings. qt-config: Rename settings category qt config: Rename to read category config: Read/write contols category with for_each This is extremely limited due to the complexity of the Controls group, but this handles the the settings that use the interface. qt-config: Use new settings registry qt-config: Read/write advgrphics qt-config: Use settings linkage object yuzu_cmd: Load setting off of vector cmd-config: Finish settings rename config: Read controls settings group with for_each cmd/config: Move registry into values cmd: Read adv graphics cmd-config: Use settings linkage object
This commit is contained in:
		
							parent
							
								
									e7543e8b84
								
							
						
					
					
						commit
						60773194a0
					
				
					 9 changed files with 688 additions and 858 deletions
				
			
		|  | @ -144,6 +144,56 @@ float Volume() { | |||
|     return values.volume.GetValue() / static_cast<f32>(values.volume.GetDefault()); | ||||
| } | ||||
| 
 | ||||
| const char* TranslateCategory(Category category) { | ||||
|     switch (category) { | ||||
|     case Category::Audio: | ||||
|         return "Audio"; | ||||
|     case Category::Core: | ||||
|         return "Core"; | ||||
|     case Category::Cpu: | ||||
|         return "Cpu"; | ||||
|     case Category::Renderer: | ||||
|         return "Renderer"; | ||||
|     case Category::System: | ||||
|         return "System"; | ||||
|     case Category::DataStorage: | ||||
|         return "Data Storage"; | ||||
|     case Category::Debugging: | ||||
|         return "Debugging"; | ||||
|     case Category::Miscellaneous: | ||||
|         return "Miscellaneous"; | ||||
|     case Category::Network: | ||||
|         return "Network"; | ||||
|     case Category::WebService: | ||||
|         return "WebService"; | ||||
|     case Category::AddOns: | ||||
|         return "DisabledAddOns"; | ||||
|     case Category::Controls: | ||||
|         return "Controls"; | ||||
|     case Category::Ui: | ||||
|         return "UI"; | ||||
|     case Category::UiLayout: | ||||
|         return "UiLayout"; | ||||
|     case Category::UiGameList: | ||||
|         return "UiGameList"; | ||||
|     case Category::Screenshots: | ||||
|         return "Screenshots"; | ||||
|     case Category::Shortcuts: | ||||
|         return "Shortcuts"; | ||||
|     case Category::Multiplayer: | ||||
|         return "Multiplayer"; | ||||
|     case Category::Services: | ||||
|         return "Services"; | ||||
|     case Category::Paths: | ||||
|         return "Paths"; | ||||
|     case Category::MaxEnum: | ||||
|         break; | ||||
|     case Category::AdvancedGraphics: | ||||
|         return "Renderer"; | ||||
|     } | ||||
|     return "Miscellaneous"; | ||||
| } | ||||
| 
 | ||||
| void UpdateRescalingInfo() { | ||||
|     const auto setup = values.resolution_setup.GetValue(); | ||||
|     auto& info = values.resolution_info; | ||||
|  | @ -212,7 +262,7 @@ void RestoreGlobalState(bool is_powered_on) { | |||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     for (const auto& reset : global_reset_registry) { | ||||
|     for (const auto& reset : values.linkage.restore_functions) { | ||||
|         reset(); | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 lat9nq
						lat9nq