Skip to content

Commit

Permalink
Merge pull request #5400 from JosJuice/volumedirectory-no-emulatedbs2wii
Browse files Browse the repository at this point in the history
Don't run EmulatedBS2_Wii with VolumeDirectory
  • Loading branch information
leoetlino committed May 14, 2017
2 parents 2fca1b9 + 486de02 commit c18c1ec
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Source/Core/Core/Boot/Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,18 +354,24 @@ bool CBoot::BootUp()
volume = SetDisc(DiscIO::CreateVolumeFromFilename(_StartupPara.m_strDefaultISO));
}

if (!EmulatedBS2(dolWii, volume))
// Poor man's bootup
if (dolWii)
{
if (dolWii)
HID4.SBE = 1;
HID4.SBE = 1;
SetupBAT(dolWii);

if (dolWii)
SetupWiiMemory(volume, 0x000000010000003a);

dolLoader.Load();
PC = dolLoader.GetEntryPoint();
// Because there is no TMD to get the requested system (IOS) version from,
// we default to IOS58, which is the version used by the Homebrew Channel.
SetupWiiMemory(volume, 0x000000010000003a);
}
else
{
EmulatedBS2_GC(volume, true);
}

Load_FST(dolWii, volume);
dolLoader.Load();
PC = dolLoader.GetEntryPoint();

if (LoadMapFromFilename())
HLE::PatchFunctions();
Expand Down

0 comments on commit c18c1ec

Please sign in to comment.