From 6263830d6d210487289df639f86abbbcdfcaefd6 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sat, 8 Apr 2017 18:48:22 +0200 Subject: [PATCH] Boot: Always emulate BS2 once when booting a DOL The old code could do it 0, 1 or 2 times. --- Source/Core/Core/Boot/Boot.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/Core/Core/Boot/Boot.cpp b/Source/Core/Core/Boot/Boot.cpp index d54206a93d..f69a8c794f 100644 --- a/Source/Core/Core/Boot/Boot.cpp +++ b/Source/Core/Core/Boot/Boot.cpp @@ -334,16 +334,12 @@ bool CBoot::BootUp() PanicAlertT("Warning - starting DOL in wrong console mode!"); } - bool BS2Success = false; - if (dolWii) { - BS2Success = EmulatedBS2(dolWii); } else if (!_StartupPara.m_strDefaultISO.empty()) { DVDInterface::SetVolumeName(_StartupPara.m_strDefaultISO); - BS2Success = EmulatedBS2(dolWii); } if (!_StartupPara.m_strDVDRoot.empty()) @@ -351,10 +347,9 @@ bool CBoot::BootUp() NOTICE_LOG(BOOT, "Setting DVDRoot %s", _StartupPara.m_strDVDRoot.c_str()); DVDInterface::SetVolumeDirectory(_StartupPara.m_strDVDRoot, dolWii, _StartupPara.m_strApploader, _StartupPara.m_strFilename); - BS2Success = EmulatedBS2(dolWii); } - if (!BS2Success) + if (!EmulatedBS2(dolWii)) { // Set up MSR and the BAT SPR registers. UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);