summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-02-04 12:05:50 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-02-04 12:05:50 +0100
commit806e2d79006c8acae6422633273aba1c3ca368a4 (patch)
treebfe5753476b4074ab7da8a1c68a95bec84068bcc
parentMerge pull request #5870 from german77/hanheldfix2 (diff)
downloadyuzu-806e2d79006c8acae6422633273aba1c3ca368a4.tar
yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.tar.gz
yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.tar.bz2
yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.tar.lz
yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.tar.xz
yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.tar.zst
yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.zip
-rw-r--r--src/core/crypto/key_manager.cpp5
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);