diff options
author | Zach Hilman <zachhilman@gmail.com> | 2018-10-13 19:02:33 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-24 01:31:28 +0200 |
commit | 45f2a2fe29373f261144c097d169dad8b65fe012 (patch) | |
tree | 610b04ce839b40eaab1fe297c625b34eaf76e9cd /src/yuzu_cmd | |
parent | configure_system: Clear selection after user delete (diff) | |
download | yuzu-45f2a2fe29373f261144c097d169dad8b65fe012.tar yuzu-45f2a2fe29373f261144c097d169dad8b65fe012.tar.gz yuzu-45f2a2fe29373f261144c097d169dad8b65fe012.tar.bz2 yuzu-45f2a2fe29373f261144c097d169dad8b65fe012.tar.lz yuzu-45f2a2fe29373f261144c097d169dad8b65fe012.tar.xz yuzu-45f2a2fe29373f261144c097d169dad8b65fe012.tar.zst yuzu-45f2a2fe29373f261144c097d169dad8b65fe012.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu_cmd/config.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index f6083dcb3..b456266a6 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp @@ -8,6 +8,7 @@ #include "common/file_util.h" #include "common/logging/log.h" #include "common/param_package.h" +#include "core/hle/service/acc/profile_manager.h" #include "core/settings.h" #include "input_common/main.h" #include "yuzu_cmd/config.h" @@ -128,8 +129,8 @@ void Config::ReadValues() { Settings::values.enable_nfc = sdl2_config->GetBoolean("System", "enable_nfc", true); const auto size = sdl2_config->GetInteger("System", "users_size", 0); - Settings::values.current_user = - std::clamp<int>(sdl2_config->GetInteger("System", "current_user", 0), 0, 7); + Settings::values.current_user = std::clamp<int>( + sdl2_config->GetInteger("System", "current_user", 0), 0, Service::Account::MAX_USERS - 1); // Miscellaneous Settings::values.log_filter = sdl2_config->Get("Miscellaneous", "log_filter", "*:Trace"); |