summaryrefslogtreecommitdiff
path: root/src/core/crypto/key_manager.cpp
diff options
context:
space:
mode:
authorGravatar Zach Hilman2018-08-24 22:15:32 -0400
committerGravatar Zach Hilman2018-08-24 22:15:32 -0400
commit6314a799aa7e20789562d2e877949dfebb6194ce (patch)
treef5bd5cdd7e5804e7416abf75ab411c0be69b97e6 /src/core/crypto/key_manager.cpp
parentxci: Ignore NCA files with updates in secure (diff)
downloadyuzu-6314a799aa7e20789562d2e877949dfebb6194ce.tar.gz
yuzu-6314a799aa7e20789562d2e877949dfebb6194ce.tar.xz
yuzu-6314a799aa7e20789562d2e877949dfebb6194ce.zip
file_sys/crypto: Fix missing/unnecessary includes
Diffstat (limited to 'src/core/crypto/key_manager.cpp')
-rw-r--r--src/core/crypto/key_manager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/crypto/key_manager.cpp b/src/core/crypto/key_manager.cpp
index 0b14bf15c..0b6c07de8 100644
--- a/src/core/crypto/key_manager.cpp
+++ b/src/core/crypto/key_manager.cpp
@@ -133,7 +133,7 @@ KeyManager::KeyManager() {
133 } 133 }
134 134
135 AttemptLoadKeyFile(yuzu_keys_dir, hactool_keys_dir, "title.keys", true); 135 AttemptLoadKeyFile(yuzu_keys_dir, hactool_keys_dir, "title.keys", true);
136 AttemptLoadKeyFile(yuzu_keys_dir, yuzu_keys_dir, "title.keys_autogenerated", false); 136 AttemptLoadKeyFile(yuzu_keys_dir, yuzu_keys_dir, "title.keys_autogenerated", true);
137} 137}
138 138
139void KeyManager::LoadFromFile(const std::string& filename, bool is_title_keys) { 139void KeyManager::LoadFromFile(const std::string& filename, bool is_title_keys) {
@@ -223,8 +223,7 @@ void KeyManager::WriteKeyToFile(bool title_key, std::string_view keyname,
223 << "# If you are experiencing issues involving keys, it may help to delete this file\n"; 223 << "# If you are experiencing issues involving keys, it may help to delete this file\n";
224 } 224 }
225 225
226 file << std::endl 226 file << fmt::format("\n{} = {}", keyname, Common::HexArrayToString(key));
227 << fmt::format("{} = {}", keyname, Common::HexArrayToString(key)) << std::endl;
228 AttemptLoadKeyFile(yuzu_keys_dir, yuzu_keys_dir, filename, title_key); 227 AttemptLoadKeyFile(yuzu_keys_dir, yuzu_keys_dir, filename, title_key);
229} 228}
230 229