mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Merge pull request #151 from archshift/dyncom-enabled
Use configuration files to enable or disable the new dyncom interpreter.
This commit is contained in:
		
						commit
						48f80bb79e
					
				
					 10 changed files with 63 additions and 7 deletions
				
			
		|  | @ -6,6 +6,7 @@ | |||
| #include <QStringList> | ||||
| 
 | ||||
| #include "core/settings.h" | ||||
| #include "core/core.h" | ||||
| #include "common/file_util.h" | ||||
| 
 | ||||
| #include "config.h" | ||||
|  | @ -64,6 +65,20 @@ void Config::SaveControls() { | |||
|     qt_config->endGroup(); | ||||
| } | ||||
| 
 | ||||
| void Config::ReadCore() { | ||||
|     qt_config->beginGroup("Core"); | ||||
|     Settings::values.cpu_core = qt_config->value("cpu_core", Core::CPU_Interpreter).toInt(); | ||||
|     Settings::values.gpu_refresh_rate = qt_config->value("gpu_refresh_rate", 60).toInt(); | ||||
|     qt_config->endGroup(); | ||||
| } | ||||
| 
 | ||||
| void Config::SaveCore() { | ||||
|     qt_config->beginGroup("Core"); | ||||
|     qt_config->setValue("cpu_core", Settings::values.cpu_core); | ||||
|     qt_config->setValue("gpu_refresh_rate", Settings::values.gpu_refresh_rate); | ||||
|     qt_config->endGroup(); | ||||
| } | ||||
| 
 | ||||
| void Config::ReadData() { | ||||
|     qt_config->beginGroup("Data Storage"); | ||||
|     Settings::values.use_virtual_sd = qt_config->value("use_virtual_sd", true).toBool(); | ||||
|  | @ -78,11 +93,13 @@ void Config::SaveData() { | |||
| 
 | ||||
| void Config::Reload() { | ||||
|     ReadControls(); | ||||
|     ReadCore(); | ||||
|     ReadData(); | ||||
| } | ||||
| 
 | ||||
| void Config::Save() { | ||||
|     SaveControls(); | ||||
|     SaveCore(); | ||||
|     SaveData(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -14,7 +14,8 @@ class Config { | |||
| 
 | ||||
|     void ReadControls(); | ||||
|     void SaveControls(); | ||||
| 
 | ||||
|     void ReadCore(); | ||||
|     void SaveCore(); | ||||
|     void ReadData(); | ||||
|     void SaveData(); | ||||
| public: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue