mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 06:59:07 +01:00
Move LoadPatches calls
LoadPatches was apparently never being called when booting Wii discs. Maybe this will fix the recent regression with cheat codes not getting loaded? I don't know how this managed to work to begin with, though... (The call was also moved for WADs, just for consistency.)
This commit is contained in:
parent
8035270aa8
commit
09682cfaa4
@ -289,11 +289,8 @@ bool CBoot::BootUp()
|
|||||||
// If we can't load the bootrom file we HLE it instead
|
// If we can't load the bootrom file we HLE it instead
|
||||||
EmulatedBS2(_StartupPara.bWii);
|
EmulatedBS2(_StartupPara.bWii);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
PatchEngine::LoadPatches();
|
||||||
// Load patches if they weren't already
|
|
||||||
PatchEngine::LoadPatches();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Scan for common HLE functions
|
// Scan for common HLE functions
|
||||||
if (_StartupPara.bHLE_BS2 && !_StartupPara.bEnableDebugging)
|
if (_StartupPara.bHLE_BS2 && !_StartupPara.bEnableDebugging)
|
||||||
@ -436,6 +433,8 @@ bool CBoot::BootUp()
|
|||||||
case SConfig::BOOT_WII_NAND:
|
case SConfig::BOOT_WII_NAND:
|
||||||
Boot_WiiWAD(_StartupPara.m_strFilename);
|
Boot_WiiWAD(_StartupPara.m_strFilename);
|
||||||
|
|
||||||
|
PatchEngine::LoadPatches();
|
||||||
|
|
||||||
if (LoadMapFromFilename())
|
if (LoadMapFromFilename())
|
||||||
HLE::PatchFunctions();
|
HLE::PatchFunctions();
|
||||||
|
|
||||||
|
@ -182,9 +182,6 @@ bool CBoot::EmulatedBS2_GC(bool skipAppLoader)
|
|||||||
// return
|
// return
|
||||||
PC = PowerPC::ppcState.gpr[3];
|
PC = PowerPC::ppcState.gpr[3];
|
||||||
|
|
||||||
// Load patches
|
|
||||||
PatchEngine::LoadPatches();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,8 +20,6 @@
|
|||||||
#include "Core/PatchEngine.h"
|
#include "Core/PatchEngine.h"
|
||||||
|
|
||||||
#include "DiscIO/NANDContentLoader.h"
|
#include "DiscIO/NANDContentLoader.h"
|
||||||
#include "DiscIO/Volume.h"
|
|
||||||
#include "DiscIO/VolumeCreator.h"
|
|
||||||
|
|
||||||
struct StateFlags
|
struct StateFlags
|
||||||
{
|
{
|
||||||
@ -93,10 +91,5 @@ bool CBoot::Boot_WiiWAD(const std::string& _pFilename)
|
|||||||
if (!IOS::HLE::BootstrapPPC(ContentLoader))
|
if (!IOS::HLE::BootstrapPPC(ContentLoader))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Load patches and run startup patches
|
|
||||||
const std::unique_ptr<DiscIO::IVolume> pVolume(DiscIO::CreateVolumeFromFilename(_pFilename));
|
|
||||||
if (pVolume != nullptr)
|
|
||||||
PatchEngine::LoadPatches();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user