diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-05 03:17:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-05 03:17:10 +0200 |
commit | cd96c04339f0b457154ae17810408a9c39959962 (patch) | |
tree | 46691894e3dab41efe835b9c7924668aecc079ef /src/core/crypto/key_manager.h | |
parent | Merge pull request #923 from lioncash/pragma (diff) | |
parent | aes_util: Add static assertion to Transcode() and XTSTranscode() to ensure well-defined behavior (diff) | |
download | yuzu-cd96c04339f0b457154ae17810408a9c39959962.tar yuzu-cd96c04339f0b457154ae17810408a9c39959962.tar.gz yuzu-cd96c04339f0b457154ae17810408a9c39959962.tar.bz2 yuzu-cd96c04339f0b457154ae17810408a9c39959962.tar.lz yuzu-cd96c04339f0b457154ae17810408a9c39959962.tar.xz yuzu-cd96c04339f0b457154ae17810408a9c39959962.tar.zst yuzu-cd96c04339f0b457154ae17810408a9c39959962.zip |
Diffstat (limited to 'src/core/crypto/key_manager.h')
-rw-r--r-- | src/core/crypto/key_manager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/crypto/key_manager.h b/src/core/crypto/key_manager.h index 03152a12c..c4c53cefc 100644 --- a/src/core/crypto/key_manager.h +++ b/src/core/crypto/key_manager.h @@ -5,6 +5,7 @@ #pragma once #include <array> +#include <string> #include <type_traits> #include <unordered_map> #include <vector> @@ -109,9 +110,9 @@ private: std::unordered_map<KeyIndex<S256KeyType>, Key256> s256_keys; bool dev_mode; - void LoadFromFile(std::string_view filename, bool is_title_keys); - void AttemptLoadKeyFile(std::string_view dir1, std::string_view dir2, std::string_view filename, - bool title); + void LoadFromFile(const std::string& filename, bool is_title_keys); + void AttemptLoadKeyFile(const std::string& dir1, const std::string& dir2, + const std::string& filename, bool title); static const std::unordered_map<std::string, KeyIndex<S128KeyType>> s128_file_id; static const std::unordered_map<std::string, KeyIndex<S256KeyType>> s256_file_id; |