mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	config: Added nand_directory and sdmc_directory to Settings
Added settings to the ini
This commit is contained in:
		
							parent
							
								
									3be52f818a
								
							
						
					
					
						commit
						7f20d8bb88
					
				
					 3 changed files with 22 additions and 12 deletions
				
			
		|  | @ -201,10 +201,10 @@ void Config::ReadValues() { | |||
|     // Data Storage
 | ||||
|     Settings::values.use_virtual_sd = | ||||
|         sdl2_config->GetBoolean("Data Storage", "use_virtual_sd", true); | ||||
|     Settings::values.nand_dir = | ||||
|         sdl2_config->Get("Data Storage", "nand_directory", FileUtil::GetUserPath(FileUtil::UserPath::NANDDir)); | ||||
|     Settings::values.sdmc_dir = | ||||
|         sdl2_config->Get("Data Storage", "sdmc_directory", FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir)); | ||||
|     Settings::values.nand_dir = sdl2_config->GetString( | ||||
|         "Data Storage", "nand_directory", FileUtil::GetUserPath(FileUtil::UserPath::NANDDir)); | ||||
|     Settings::values.sdmc_dir = sdl2_config->GetString( | ||||
|         "Data Storage", "sdmc_directory", FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir)); | ||||
| 
 | ||||
|     // System
 | ||||
|     Settings::values.is_new_3ds = sdl2_config->GetBoolean("System", "is_new_3ds", true); | ||||
|  |  | |||
|  | @ -250,6 +250,14 @@ volume = | |||
| # 1 (default): Yes, 0: No | ||||
| use_virtual_sd = | ||||
| 
 | ||||
| # The path of the virtual SD card directory. | ||||
| # empty (default) will use the user_path | ||||
| sdmc_directory = | ||||
| 
 | ||||
| # The path of NAND directory. | ||||
| # empty (default) will use the user_path | ||||
| nand_directory = | ||||
| 
 | ||||
| [System] | ||||
| # The system model that Citra will try to emulate | ||||
| # 0: Old 3DS, 1: New 3DS (default) | ||||
|  |  | |||
|  | @ -303,13 +303,15 @@ void Config::ReadDataStorageValues() { | |||
| 
 | ||||
|     Settings::values.use_virtual_sd = ReadSetting(QStringLiteral("use_virtual_sd"), true).toBool(); | ||||
|     std::string nan_dir = FileUtil::GetUserPath(FileUtil::UserPath::NANDDir); | ||||
|     Settings::values.nand_dir = ReadSetting(QStringLiteral("nand_directory"), QString::fromStdString(nan_dir)) | ||||
|                                     .toString() | ||||
|                                     .toStdString(); | ||||
|     Settings::values.nand_dir = | ||||
|         ReadSetting(QStringLiteral("nand_directory"), QString::fromStdString(nan_dir)) | ||||
|             .toString() | ||||
|             .toStdString(); | ||||
|     std::string sdmc_dir = FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir); | ||||
|     Settings::values.sdmc_dir = ReadSetting(QStringLiteral("sdmc_directory"), QString::fromStdString(sdmc_dir)) | ||||
|                                     .toString() | ||||
|                                     .toStdString(); | ||||
|     Settings::values.sdmc_dir = | ||||
|         ReadSetting(QStringLiteral("sdmc_directory"), QString::fromStdString(sdmc_dir)) | ||||
|             .toString() | ||||
|             .toStdString(); | ||||
| 
 | ||||
|     qt_config->endGroup(); | ||||
| } | ||||
|  | @ -861,9 +863,9 @@ void Config::SaveDataStorageValues() { | |||
| 
 | ||||
|     WriteSetting(QStringLiteral("use_virtual_sd"), Settings::values.use_virtual_sd, true); | ||||
|     WriteSetting(QStringLiteral("nand_directory"), | ||||
|                                 QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::NANDDir))); | ||||
|                  QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::NANDDir))); | ||||
|     WriteSetting(QStringLiteral("sdmc_directory"), | ||||
|                                 QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir))); | ||||
|                  QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir))); | ||||
| 
 | ||||
|     qt_config->endGroup(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue