diff options
| author | 2021-02-04 06:05:50 -0500 | |
|---|---|---|
| committer | 2021-02-04 06:05:50 -0500 | |
| commit | 806e2d79006c8acae6422633273aba1c3ca368a4 (patch) | |
| tree | bfe5753476b4074ab7da8a1c68a95bec84068bcc | |
| parent | Merge pull request #5870 from german77/hanheldfix2 (diff) | |
| download | yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.tar.gz yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.tar.xz yuzu-806e2d79006c8acae6422633273aba1c3ca368a4.zip | |
key_manager: Create the keys directory if it does not exist
Diffstat (limited to '')
| -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() { | |||
| 568 | // Initialize keys | 568 | // Initialize keys |
| 569 | const std::string hactool_keys_dir = Common::FS::GetHactoolConfigurationPath(); | 569 | const std::string hactool_keys_dir = Common::FS::GetHactoolConfigurationPath(); |
| 570 | const std::string yuzu_keys_dir = Common::FS::GetUserPath(Common::FS::UserPath::KeysDir); | 570 | const std::string yuzu_keys_dir = Common::FS::GetUserPath(Common::FS::UserPath::KeysDir); |
| 571 | |||
| 572 | if (!Common::FS::Exists(yuzu_keys_dir)) { | ||
| 573 | Common::FS::CreateDir(yuzu_keys_dir); | ||
| 574 | } | ||
| 575 | |||
| 571 | if (Settings::values.use_dev_keys) { | 576 | if (Settings::values.use_dev_keys) { |
| 572 | dev_mode = true; | 577 | dev_mode = true; |
| 573 | AttemptLoadKeyFile(yuzu_keys_dir, hactool_keys_dir, "dev.keys", false); | 578 | AttemptLoadKeyFile(yuzu_keys_dir, hactool_keys_dir, "dev.keys", false); |