mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 08:12:44 +01:00
WTF
This commit is contained in:
parent
07f19b0bbc
commit
4009a72299
1 changed files with 5 additions and 1 deletions
|
@ -667,6 +667,7 @@ static bool ValidCryptoRevisionString(std::string_view base, size_t begin, size_
|
||||||
}
|
}
|
||||||
|
|
||||||
void KeyManager::LoadFromFile(const std::filesystem::path& file_path, int key_type) {
|
void KeyManager::LoadFromFile(const std::filesystem::path& file_path, int key_type) {
|
||||||
|
bool is_title_keys = false;
|
||||||
if (!Common::FS::Exists(file_path)) {
|
if (!Common::FS::Exists(file_path)) {
|
||||||
switch (key_type) {
|
switch (key_type) {
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -680,11 +681,14 @@ void KeyManager::LoadFromFile(const std::filesystem::path& file_path, int key_ty
|
||||||
case 3:
|
case 3:
|
||||||
LOG_INFO(Crypto, "Issue with Title key file at '{}': File not found",
|
LOG_INFO(Crypto, "Issue with Title key file at '{}': File not found",
|
||||||
file_path.generic_string());
|
file_path.generic_string());
|
||||||
|
is_title_keys = true;
|
||||||
case 4:
|
case 4:
|
||||||
LOG_INFO(Crypto, "Issue with Console key file at '{}': File not found",
|
LOG_INFO(Crypto, "Issue with Console key file at '{}': File not found",
|
||||||
file_path.generic_string());
|
file_path.generic_string());
|
||||||
|
is_title_keys = true;
|
||||||
default:
|
default:
|
||||||
LOG_ERROR(Crypto, "Unknown Key Type");
|
LOG_ERROR(Crypto, "Unknown Key Type");
|
||||||
|
is_title_keys = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1322,4 +1326,4 @@ bool KeyManager::AddTicket(const Ticket& ticket) {
|
||||||
SetKey(S128KeyType::Titlekey, key.value(), rights_id[1], rights_id[0]);
|
SetKey(S128KeyType::Titlekey, key.value(), rights_id[1], rights_id[0]);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} // namespace Core::Crypto
|
} // namespace Core::Crypto
|
||||||
|
|
Loading…
Reference in a new issue