diff options
Diffstat (limited to 'src/yuzu_cmd')
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 25 | ||||
| -rw-r--r-- | src/yuzu_cmd/default_ini.h | 16 | ||||
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 2 |
3 files changed, 42 insertions, 1 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)); |
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h index 0cfc111a6..a6171c3ed 100644 --- a/src/yuzu_cmd/default_ini.h +++ b/src/yuzu_cmd/default_ini.h | |||
| @@ -173,6 +173,20 @@ volume = | |||
| 173 | # 1 (default): Yes, 0: No | 173 | # 1 (default): Yes, 0: No |
| 174 | use_virtual_sd = | 174 | use_virtual_sd = |
| 175 | 175 | ||
| 176 | # Whether or not to enable gamecard emulation | ||
| 177 | # 1: Yes, 0 (default): No | ||
| 178 | gamecard_inserted = | ||
| 179 | |||
| 180 | # Whether or not the gamecard should be emulated as the current game | ||
| 181 | # If 'gamecard_inserted' is 0 this setting is irrelevant | ||
| 182 | # 1: Yes, 0 (default): No | ||
| 183 | gamecard_current_game = | ||
| 184 | |||
| 185 | # Path to an XCI file to use as the gamecard | ||
| 186 | # If 'gamecard_inserted' is 0 this setting is irrelevant | ||
| 187 | # If 'gamecard_current_game' is 1 this setting is irrelevant | ||
| 188 | gamecard_path = | ||
| 189 | |||
| 176 | [System] | 190 | [System] |
| 177 | # Whether the system is docked | 191 | # Whether the system is docked |
| 178 | # 1: Yes, 0 (default): No | 192 | # 1: Yes, 0 (default): No |
| @@ -213,6 +227,8 @@ region_value = | |||
| 213 | log_filter = *:Trace | 227 | log_filter = *:Trace |
| 214 | 228 | ||
| 215 | [Debugging] | 229 | [Debugging] |
| 230 | # Record frame time data, can be found in the log directory. Boolean value | ||
| 231 | record_frame_times = | ||
| 216 | # Port for listening to GDB connections. | 232 | # Port for listening to GDB connections. |
| 217 | use_gdbstub=false | 233 | use_gdbstub=false |
| 218 | gdbstub_port=24689 | 234 | gdbstub_port=24689 |
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 129d8ca73..bac05b959 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -184,7 +184,7 @@ int main(int argc, char** argv) { | |||
| 184 | Core::System& system{Core::System::GetInstance()}; | 184 | Core::System& system{Core::System::GetInstance()}; |
| 185 | system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>()); | 185 | system.SetContentProvider(std::make_unique<FileSys::ContentProviderUnion>()); |
| 186 | system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); | 186 | system.SetFilesystem(std::make_shared<FileSys::RealVfsFilesystem>()); |
| 187 | Service::FileSystem::CreateFactories(*system.GetFilesystem()); | 187 | system.GetFileSystemController().CreateFactories(*system.GetFilesystem()); |
| 188 | 188 | ||
| 189 | SCOPE_EXIT({ system.Shutdown(); }); | 189 | SCOPE_EXIT({ system.Shutdown(); }); |
| 190 | 190 | ||