forked from suyu/suyu
Allow NRO files to skip FW and keys' presence checks (#11)
doing an old suggestion from the now-deleted "emulator-suggestions" channel on the discord Co-authored-by: nullequal <nullequal@noreply.localhost> Co-committed-by: nullequal <nullequal@noreply.localhost>
This commit is contained in:
parent
18ba0f1345
commit
15ca12c0ec
1 changed files with 14 additions and 11 deletions
|
@ -1747,18 +1747,21 @@ void GMainWindow::AllowOSSleep() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GMainWindow::LoadROM(const QString& filename, Service::AM::FrontendAppletParameters params) {
|
bool GMainWindow::LoadROM(const QString& filename, Service::AM::FrontendAppletParameters params) {
|
||||||
if (!CheckFirmwarePresence()) {
|
if (Loader::IdentifyType(Core::GetGameFileFromPath(vfs, filename.toStdString())) !=
|
||||||
QMessageBox::critical(this, tr("Component Missing"), tr("Missing Firmware."));
|
Loader::FileType::NRO) {
|
||||||
return false;
|
if (!CheckFirmwarePresence()) {
|
||||||
}
|
QMessageBox::critical(this, tr("Component Missing"), tr("Missing Firmware."));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!ContentManager::AreKeysPresent()) {
|
if (!ContentManager::AreKeysPresent()) {
|
||||||
QMessageBox::warning(this, tr("Derivation Components Missing"),
|
QMessageBox::warning(this, tr("Derivation Components Missing"),
|
||||||
tr("Encryption keys are missing. "
|
tr("Encryption keys are missing. "
|
||||||
"In order to use this emulator, "
|
"In order to use this emulator, "
|
||||||
"you need to provide your own encryption keys "
|
"you need to provide your own encryption keys "
|
||||||
"in order to play them."));
|
"in order to play them."));
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shutdown previous session if the emu thread is still active...
|
// Shutdown previous session if the emu thread is still active...
|
||||||
|
|
Loading…
Reference in a new issue