CommonTitles: Add a named constant for IOS TIDs

This commit is contained in:
Léo Lam 2017-10-04 10:48:49 +02:00
parent dedb61e5bf
commit 4cc1bd972a
2 changed files with 12 additions and 7 deletions

View File

@ -339,7 +339,7 @@ bool CBoot::BootUp(std::unique_ptr<BootParameters> boot)
// Because there is no TMD to get the requested system (IOS) version from, // 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. // we default to IOS58, which is the version used by the Homebrew Channel.
SetupWiiMemory(); SetupWiiMemory();
IOS::HLE::GetIOS()->BootIOS(0x000000010000003a); IOS::HLE::GetIOS()->BootIOS(Titles::IOS(58));
} }
else else
{ {

View File

@ -12,11 +12,16 @@ constexpr u64 BOOT2 = 0x0000000100000001;
constexpr u64 SYSTEM_MENU = 0x0000000100000002; constexpr u64 SYSTEM_MENU = 0x0000000100000002;
// IOS used by the latest System Menu (4.3). Corresponds to IOS80.
constexpr u64 SYSTEM_MENU_IOS = 0x0000000100000050;
constexpr u64 BC = 0x0000000100000100;
constexpr u64 MIOS = 0x0000000100000101;
constexpr u64 SHOP = 0x0001000248414241; constexpr u64 SHOP = 0x0001000248414241;
constexpr u64 IOS(u32 major_version)
{
return 0x0000000100000000 | major_version;
}
// IOS used by the latest System Menu (4.3). Corresponds to IOS80.
constexpr u64 SYSTEM_MENU_IOS = IOS(80);
constexpr u64 BC = IOS(0x100);
constexpr u64 MIOS = IOS(0x101);
} // namespace Titles } // namespace Titles