diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-04-23 14:35:12 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-21 22:43:10 +0200 |
commit | 2590b5a9ea51f6868cac4322b2e4984d65656541 (patch) | |
tree | c7d2be3ecac40031e3b34950710b0d234e7e0385 /src/yuzu_cmd | |
parent | settings: Add options for setting storage sizes (diff) | |
download | yuzu-2590b5a9ea51f6868cac4322b2e4984d65656541.tar yuzu-2590b5a9ea51f6868cac4322b2e4984d65656541.tar.gz yuzu-2590b5a9ea51f6868cac4322b2e4984d65656541.tar.bz2 yuzu-2590b5a9ea51f6868cac4322b2e4984d65656541.tar.lz yuzu-2590b5a9ea51f6868cac4322b2e4984d65656541.tar.xz yuzu-2590b5a9ea51f6868cac4322b2e4984d65656541.tar.zst yuzu-2590b5a9ea51f6868cac4322b2e4984d65656541.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu_cmd/config.cpp | 14 | ||||
-rw-r--r-- | src/yuzu_cmd/default_ini.h | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 60e2b2d1b..d82438502 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp @@ -316,6 +316,20 @@ void Config::ReadValues() { FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir, sdl2_config->Get("Data Storage", "sdmc_directory", FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir))); + FileUtil::GetUserPath(FileUtil::UserPath::LoadDir, + sdl2_config->Get("Data Storage", "load_directory", + FileUtil::GetUserPath(FileUtil::UserPath::LoadDir))); + FileUtil::GetUserPath(FileUtil::UserPath::DumpDir, + sdl2_config->Get("Data Storage", "dump_directory", + FileUtil::GetUserPath(FileUtil::UserPath::DumpDir))); + FileUtil::GetUserPath(FileUtil::UserPath::CacheDir, + sdl2_config->Get("Data Storage", "cache_directory", + FileUtil::GetUserPath(FileUtil::UserPath::CacheDir))); + Settings::values.gamecard_inserted = + sdl2_config->GetBoolean("Data Storage", "gamecard_inserted", false); + Settings::values.gamecard_current_game = + sdl2_config->GetBoolean("Data Storage", "gamecard_current_game", false); + Settings::values.gamecard_path = sdl2_config->Get("Data Storage", "gamecard_path", ""); Settings::values.nand_total_size = static_cast<Settings::NANDTotalSize>(sdl2_config->GetInteger( "Data Storage", "nand_total_size", static_cast<long>(Settings::NANDTotalSize::S29_1GB))); Settings::values.nand_user_size = static_cast<Settings::NANDUserSize>(sdl2_config->GetInteger( diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h index f9f244522..e66d2f89b 100644 --- a/src/yuzu_cmd/default_ini.h +++ b/src/yuzu_cmd/default_ini.h @@ -173,6 +173,20 @@ volume = # 1 (default): Yes, 0: No use_virtual_sd = +# Whether or not to enable gamecard emulation +# 1: Yes, 0 (default): No +gamecard_inserted = + +# Whether or not the gamecard should be emulated as the current game +# If 'gamecard_inserted' is 0 this setting is irrelevant +# 1: Yes, 0 (default): No +gamecard_current_game = + +# Path to an XCI file to use as the gamecard +# If 'gamecard_inserted' is 0 this setting is irrelevant +# If 'gamecard_current_game' is 1 this setting is irrelevant +gamecard_path = + [System] # Whether the system is docked # 1: Yes, 0 (default): No |