[XAM/INFO] - Implement multiple functions

- Implement XamIsSystemExperienceTitleId, XamIsSystemTitleId, XamIsXbox1TitleId
- Replaced is_title_system_type
- Changed XamIsCurrentTitleDash
- Reduced magic numbers
This commit is contained in:
The-Little-Wolf
2025-04-19 23:07:28 -07:00
committed by Radosław Gliński
parent afe74e3d72
commit be44b9ba33
7 changed files with 127 additions and 19 deletions

View File

@@ -127,18 +127,6 @@ uint32_t KernelState::title_id() const {
return 0;
}
bool KernelState::is_title_system_type(uint32_t title_id) {
if (!title_id) {
return true;
}
if ((title_id & 0xFF000000) == 0x58000000u) {
return (title_id & 0xFF0000) != 0x410000; // if 'X' but not 'XA' (XBLA)
}
return (title_id >> 16) == 0xFFFE;
}
const std::unique_ptr<xam::SpaInfo> KernelState::title_xdbf() const {
return module_xdbf(executable_module_);
}