diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-04 20:47:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-04 20:47:14 +0100 |
commit | eb3afd30b1e2498de59700821b91fddc007df42a (patch) | |
tree | bfe5753476b4074ab7da8a1c68a95bec84068bcc /src/core/crypto/key_manager.cpp | |
parent | Merge pull request #5870 from german77/hanheldfix2 (diff) | |
parent | key_manager: Create the keys directory if it does not exist (diff) | |
download | yuzu-eb3afd30b1e2498de59700821b91fddc007df42a.tar yuzu-eb3afd30b1e2498de59700821b91fddc007df42a.tar.gz yuzu-eb3afd30b1e2498de59700821b91fddc007df42a.tar.bz2 yuzu-eb3afd30b1e2498de59700821b91fddc007df42a.tar.lz yuzu-eb3afd30b1e2498de59700821b91fddc007df42a.tar.xz yuzu-eb3afd30b1e2498de59700821b91fddc007df42a.tar.zst yuzu-eb3afd30b1e2498de59700821b91fddc007df42a.zip |
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-rw-r--r-- | src/core/crypto/key_manager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp index cebe2ce37..ad116dcc0 100644 --- a/src/core/crypto/key_manager.cpp +++ b/src/core/crypto/key_manager.cpp @@ -568,6 +568,11 @@ KeyManager::KeyManager() { // Initialize keys const std::string hactool_keys_dir = Common::FS::GetHactoolConfigurationPath(); const std::string yuzu_keys_dir = Common::FS::GetUserPath(Common::FS::UserPath::KeysDir); + + if (!Common::FS::Exists(yuzu_keys_dir)) { + Common::FS::CreateDir(yuzu_keys_dir); + } + if (Settings::values.use_dev_keys) { dev_mode = true; AttemptLoadKeyFile(yuzu_keys_dir, hactool_keys_dir, "dev.keys", false); |