added support for the wii mem dump (again)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@526 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7d07881116
commit
6c007ceff0
|
@ -210,6 +210,17 @@ bool CBoot::EmulatedBIOS_Wii(bool _bDebug)
|
|||
{
|
||||
LOG(BOOT, "Faking Wii BIOS...");
|
||||
|
||||
FILE* pDump = fopen("WII/dump_0x0000_0x4000.bin", "rb");
|
||||
if (pDump != NULL)
|
||||
{
|
||||
LOG(MASTER_LOG, "Init from memory dump.");
|
||||
|
||||
fread(Memory::GetMainRAMPtr(), 1, 16384, pDump);
|
||||
fclose(pDump);
|
||||
pDump = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
// load settings.txt
|
||||
{
|
||||
std::string filename("WII/setting-eur.txt");
|
||||
|
@ -300,9 +311,10 @@ bool CBoot::EmulatedBIOS_Wii(bool _bDebug)
|
|||
VolumeHandler::ReadToPtr(Memory::GetPointer(0x3180), 0, 4);
|
||||
Memory::Write_U8(0x80, 0x00003184);
|
||||
}
|
||||
}
|
||||
|
||||
// apploader
|
||||
if (VolumeHandler::IsValid())
|
||||
if (VolumeHandler::IsValid() && VolumeHandler::IsWii())
|
||||
{
|
||||
UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);
|
||||
m_MSR.FP = 1;
|
||||
|
|
Loading…
Reference in New Issue