mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00:00
Merge pull request #13083 from Tilka/apploader
Boot: write Apploader version into memory
This commit is contained in:
commit
c7cbac538a
1 changed files with 7 additions and 0 deletions
|
@ -571,6 +571,13 @@ bool CBoot::BootUp(Core::System& system, const Core::CPUThreadGuard& guard,
|
|||
// we default to IOS58, which is the version used by the Homebrew Channel.
|
||||
SetupWiiMemory(system, IOS::HLE::IOSC::ConsoleType::Retail);
|
||||
system.GetIOS()->BootIOS(Titles::IOS(58));
|
||||
|
||||
// The Apploader writes an IOS-like version number into memory.
|
||||
// Older versions of OSInit read it to check IOS compatibility.
|
||||
constexpr u32 ADDR_IOS_VERSION = 0x3140;
|
||||
constexpr u32 ADDR_APPLOADER_VERSION = 0x3188;
|
||||
const u32 ios_version = system.GetMemory().Read_U32(ADDR_IOS_VERSION);
|
||||
system.GetMemory().Write_U32(ios_version, ADDR_APPLOADER_VERSION);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue