diff options
Diffstat (limited to 'src/yuzu_cmd/config.cpp')
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 067d58d80..d82438502 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp | |||
| @@ -316,6 +316,29 @@ void Config::ReadValues() { | |||
| 316 | FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir, | 316 | FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir, |
| 317 | sdl2_config->Get("Data Storage", "sdmc_directory", | 317 | sdl2_config->Get("Data Storage", "sdmc_directory", |
| 318 | FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir))); | 318 | FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir))); |
| 319 | FileUtil::GetUserPath(FileUtil::UserPath::LoadDir, | ||
| 320 | sdl2_config->Get("Data Storage", "load_directory", | ||
| 321 | FileUtil::GetUserPath(FileUtil::UserPath::LoadDir))); | ||
| 322 | FileUtil::GetUserPath(FileUtil::UserPath::DumpDir, | ||
| 323 | sdl2_config->Get("Data Storage", "dump_directory", | ||
| 324 | FileUtil::GetUserPath(FileUtil::UserPath::DumpDir))); | ||
| 325 | FileUtil::GetUserPath(FileUtil::UserPath::CacheDir, | ||
| 326 | sdl2_config->Get("Data Storage", "cache_directory", | ||
| 327 | FileUtil::GetUserPath(FileUtil::UserPath::CacheDir))); | ||
| 328 | Settings::values.gamecard_inserted = | ||
| 329 | sdl2_config->GetBoolean("Data Storage", "gamecard_inserted", false); | ||
| 330 | Settings::values.gamecard_current_game = | ||
| 331 | sdl2_config->GetBoolean("Data Storage", "gamecard_current_game", false); | ||
| 332 | Settings::values.gamecard_path = sdl2_config->Get("Data Storage", "gamecard_path", ""); | ||
| 333 | Settings::values.nand_total_size = static_cast<Settings::NANDTotalSize>(sdl2_config->GetInteger( | ||
| 334 | "Data Storage", "nand_total_size", static_cast<long>(Settings::NANDTotalSize::S29_1GB))); | ||
| 335 | Settings::values.nand_user_size = static_cast<Settings::NANDUserSize>(sdl2_config->GetInteger( | ||
| 336 | "Data Storage", "nand_user_size", static_cast<long>(Settings::NANDUserSize::S26GB))); | ||
| 337 | Settings::values.nand_system_size = static_cast<Settings::NANDSystemSize>( | ||
| 338 | sdl2_config->GetInteger("Data Storage", "nand_system_size", | ||
| 339 | static_cast<long>(Settings::NANDSystemSize::S2_5GB))); | ||
| 340 | Settings::values.sdmc_size = static_cast<Settings::SDMCSize>(sdl2_config->GetInteger( | ||
| 341 | "Data Storage", "sdmc_size", static_cast<long>(Settings::SDMCSize::S16GB))); | ||
| 319 | 342 | ||
| 320 | // System | 343 | // System |
| 321 | Settings::values.use_docked_mode = sdl2_config->GetBoolean("System", "use_docked_mode", false); | 344 | Settings::values.use_docked_mode = sdl2_config->GetBoolean("System", "use_docked_mode", false); |
| @@ -374,6 +397,8 @@ void Config::ReadValues() { | |||
| 374 | Settings::values.use_dev_keys = sdl2_config->GetBoolean("Miscellaneous", "use_dev_keys", false); | 397 | Settings::values.use_dev_keys = sdl2_config->GetBoolean("Miscellaneous", "use_dev_keys", false); |
| 375 | 398 | ||
| 376 | // Debugging | 399 | // Debugging |
| 400 | Settings::values.record_frame_times = | ||
| 401 | sdl2_config->GetBoolean("Debugging", "record_frame_times", false); | ||
| 377 | Settings::values.use_gdbstub = sdl2_config->GetBoolean("Debugging", "use_gdbstub", false); | 402 | Settings::values.use_gdbstub = sdl2_config->GetBoolean("Debugging", "use_gdbstub", false); |
| 378 | Settings::values.gdbstub_port = | 403 | Settings::values.gdbstub_port = |
| 379 | static_cast<u16>(sdl2_config->GetInteger("Debugging", "gdbstub_port", 24689)); | 404 | static_cast<u16>(sdl2_config->GetInteger("Debugging", "gdbstub_port", 24689)); |