Allow key loading from %YUZU_DIR%/keys in addition to ~/.switch

This commit is contained in:
Zach Hilman 2018-07-29 18:42:04 -04:00
parent cc8234fa89
commit 150527ec19
5 changed files with 23 additions and 7 deletions

View file

@ -107,6 +107,8 @@ private:
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);
static std::unordered_map<std::string, KeyIndex<S128KeyType>> s128_file_id;
static std::unordered_map<std::string, KeyIndex<S256KeyType>> s256_file_id;