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:
fires.gc 2008-09-14 11:57:35 +00:00
parent 7d07881116
commit 6c007ceff0
1 changed files with 95 additions and 83 deletions

View File

@ -210,6 +210,17 @@ bool CBoot::EmulatedBIOS_Wii(bool _bDebug)
{ {
LOG(BOOT, "Faking Wii BIOS..."); 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 // load settings.txt
{ {
std::string filename("WII/setting-eur.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); VolumeHandler::ReadToPtr(Memory::GetPointer(0x3180), 0, 4);
Memory::Write_U8(0x80, 0x00003184); Memory::Write_U8(0x80, 0x00003184);
} }
}
// apploader // apploader
if (VolumeHandler::IsValid()) if (VolumeHandler::IsValid() && VolumeHandler::IsWii())
{ {
UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr); UReg_MSR& m_MSR = ((UReg_MSR&)PowerPC::ppcState.msr);
m_MSR.FP = 1; m_MSR.FP = 1;