1
0
Fork 0
forked from suyu/suyu

Revert "WTF"

This reverts commit 4009a72299.
This commit is contained in:
ddutchie 2024-03-18 16:43:27 -04:00
parent 4009a72299
commit 2f2fbed1db

View file

@ -667,7 +667,6 @@ static bool ValidCryptoRevisionString(std::string_view base, size_t begin, size_
}
void KeyManager::LoadFromFile(const std::filesystem::path& file_path, int key_type) {
bool is_title_keys = false;
if (!Common::FS::Exists(file_path)) {
switch (key_type) {
case 1:
@ -681,14 +680,11 @@ void KeyManager::LoadFromFile(const std::filesystem::path& file_path, int key_ty
case 3:
LOG_INFO(Crypto, "Issue with Title key file at '{}': File not found",
file_path.generic_string());
is_title_keys = true;
case 4:
LOG_INFO(Crypto, "Issue with Console key file at '{}': File not found",
file_path.generic_string());
is_title_keys = true;
default:
LOG_ERROR(Crypto, "Unknown Key Type");
is_title_keys = true;
}
}
@ -1326,4 +1322,4 @@ bool KeyManager::AddTicket(const Ticket& ticket) {
SetKey(S128KeyType::Titlekey, key.value(), rights_id[1], rights_id[0]);
return true;
}
} // namespace Core::Crypto
} // namespace Core::Crypto