chihiro: emulate a chihiro system when boot.id is present

This commit is contained in:
Luke Usher 2022-03-01 20:37:24 +00:00 committed by RadWolfie
parent 3edd8d168b
commit 9a58823b70
1 changed files with 5 additions and 0 deletions

View File

@ -627,6 +627,7 @@ static bool CxbxrKrnlXbeSystemSelector(int BootFlags,
// Detect XBE type :
XbeType xbeType = CxbxKrnl_Xbe->GetXbeType();
EmuLogInit(LOG_LEVEL::INFO, "Auto detect: XbeType = %s", GetXbeTypeToStr(xbeType));
// Convert XBE type into corresponding system to emulate.
switch (xbeType) {
case XbeType::xtChihiro:
@ -640,6 +641,10 @@ static bool CxbxrKrnlXbeSystemSelector(int BootFlags,
break;
DEFAULT_UNREACHABLE;
}
if (std::filesystem::exists(xbeDirectory / "boot.id")) {
emulate_system = SYSTEM_CHIHIRO;
}
}
EmuLogInit(LOG_LEVEL::INFO, "Host's compatible system types: %2X", reserved_systems);