Skip to content

Commit

Permalink
Fix booting Wii DOLs
Browse files Browse the repository at this point in the history
We did not set up any kind of constants in memory for Wii DOLs or even
initialize IOS, so a lot of homebrew would just crash when opening ES.
  • Loading branch information
leoetlino committed Feb 10, 2017
1 parent 96e83b5 commit 94fdd89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Core/Core/Boot/Boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@ bool CBoot::BootUp()
PowerPC::DBATUpdated();
PowerPC::IBATUpdated();

// 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.
if (dolLoader.IsWii())
SetupWiiMemory(0x000000010000003a);

dolLoader.Load();
PC = dolLoader.GetEntryPoint();
}
Expand Down

0 comments on commit 94fdd89

Please sign in to comment.