From 62be010ac6c38582e6254f21b510264876301ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 1 Oct 2017 19:33:59 +0200 Subject: [PATCH] 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. --- Source/Core/Core/WiiUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/WiiUtils.cpp b/Source/Core/Core/WiiUtils.cpp index 2c766015bb..63f50a1ea2 100644 --- a/Source/Core/Core/WiiUtils.cpp +++ b/Source/Core/Core/WiiUtils.cpp @@ -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;