WiiUtils: Improve the error message on import failure

Now shows the import return code and also skips showing the message
altogether if the user cancelled the import for an unsigned WAD.
This commit is contained in:
Léo Lam 2017-10-01 19:33:59 +02:00
parent dd5c468c63
commit 62be010ac6
1 changed files with 2 additions and 1 deletions

View File

@ -76,8 +76,9 @@ static bool ImportWAD(IOS::HLE::Kernel& ios, const DiscIO::WiiWAD& wad)
continue;
}
if (ret != IOS::HLE::IOSC_FAIL_CHECKVALUE)
PanicAlertT("WAD installation failed: Could not initialise title import (error %d).", ret);
SConfig::GetInstance().m_enable_signature_checks = checks_enabled;
PanicAlertT("WAD installation failed: Could not initialise title import.");
return false;
}
SConfig::GetInstance().m_enable_signature_checks = checks_enabled;