summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-08-21 21:04:03 +0200
committerZach Hilman <zachhilman@gmail.com>2018-08-23 17:53:30 +0200
commit119ab308b551da889782420aeff088aff0d4882e (patch)
treedcfc8478f1d96280933a56d5d35a887122a30b9b
parentfile_sys: Cut down on includes and copies (diff)
downloadyuzu-119ab308b551da889782420aeff088aff0d4882e.tar
yuzu-119ab308b551da889782420aeff088aff0d4882e.tar.gz
yuzu-119ab308b551da889782420aeff088aff0d4882e.tar.bz2
yuzu-119ab308b551da889782420aeff088aff0d4882e.tar.lz
yuzu-119ab308b551da889782420aeff088aff0d4882e.tar.xz
yuzu-119ab308b551da889782420aeff088aff0d4882e.tar.zst
yuzu-119ab308b551da889782420aeff088aff0d4882e.zip
-rw-r--r--src/core/crypto/key_manager.cpp1
-rw-r--r--src/core/file_sys/sdmc_factory.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index 1cb3fce00..daa779434 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -205,6 +205,7 @@ void KeyManager::WriteKeyToFile(bool title_key, std::string_view keyname,
if (!title_key)
filename = dev_mode ? "dev.keys_autogenerated" : "prod.keys_autogenerated";
const auto add_info_text = !FileUtil::Exists(yuzu_keys_dir + DIR_SEP + filename);
+ FileUtil::CreateFullPath(yuzu_keys_dir + DIR_SEP + filename);
std::ofstream file(yuzu_keys_dir + DIR_SEP + filename, std::ios::app);
if (!file.is_open())
return;
diff --git a/src/core/file_sys/sdmc_factory.cpp b/src/core/file_sys/sdmc_factory.cpp
index b14a254c5..e4df5c4d0 100644
--- a/src/core/file_sys/sdmc_factory.cpp
+++ b/src/core/file_sys/sdmc_factory.cpp
@@ -3,6 +3,7 @@
// Refer to the license.txt file included.
#include <memory>
+#include "core/file_sys/registered_cache.h"
#include "core/file_sys/sdmc_factory.h"
#include "core/file_sys/xts_archive.h"