fix installing failing during setup if prod.keys isn't found.
This commit is contained in:
@@ -1260,6 +1260,7 @@ App::App(const char* argv0) {
|
||||
if (App::GetLogEnable()) {
|
||||
log_file_init();
|
||||
log_write("hello world\n");
|
||||
App::Notify("Warning! Logs are enabled, Sphaira will run slowly!"_i18n);
|
||||
}
|
||||
|
||||
if (App::GetMtpEnable()) {
|
||||
|
||||
@@ -101,8 +101,8 @@ Result parse_keys(Keys& out, bool read_from_file) {
|
||||
ON_SCOPE_EXIT(setcalExit());
|
||||
R_TRY(setcalGetEticketDeviceKey(std::addressof(out.eticket_device_key)));
|
||||
|
||||
R_UNLESS(ini_browse(cb, std::addressof(out), "/switch/prod.keys"), 0x1);
|
||||
|
||||
// it doesn't matter if this fails, its just that title decryption will also fail.
|
||||
if (ini_browse(cb, std::addressof(out), "/switch/prod.keys")) {
|
||||
// decrypt eticket device key.
|
||||
if (out.eticket_rsa_kek.IsValid()) {
|
||||
auto rsa_key = (es::EticketRsaDeviceKey*)out.eticket_device_key.key;
|
||||
@@ -123,6 +123,7 @@ Result parse_keys(Keys& out, bool read_from_file) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
R_SUCCEED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user