[XBDM] Implemented DmGetConsoleType

This commit is contained in:
Adrian
2026-02-16 14:49:29 +00:00
committed by Radosław Gliński
parent bf5ddc6b71
commit abaa0e4c96
3 changed files with 21 additions and 1 deletions

View File

@@ -22,6 +22,10 @@ DECLARE_bool(debug);
DEFINE_bool(force_mount_devkit, false, "Force devkit mount", "Storage");
DEFINE_int32(console_type, 0,
"Console Type Identifier: 0 - Development Kit, 1 - Test Kit",
"Kernel");
namespace xe {
namespace kernel {
namespace xbdm {
@@ -57,6 +61,17 @@ dword_result_t DmGetXboxName_entry(lpstring_t name_ptr,
}
DECLARE_XBDM_EXPORT1(DmGetXboxName, kDebug, kImplemented)
dword_result_t DmGetConsoleType_entry(lpdword_t console_type) {
if (!console_type) {
return X_E_INVALIDARG;
}
*console_type = CONSOLE_TYPE::DEVELOPMENT_KIT;
return XBDM_SUCCESSFUL;
}
DECLARE_XBDM_EXPORT1(DmGetConsoleType, kDebug, kImplemented);
dword_result_t DmIsDebuggerPresent_entry() {
return static_cast<uint32_t>(cvars::debug);
}

View File

@@ -38,6 +38,11 @@ static constexpr char DmXboxName[] = "Xbox360Name";
// clang-format on
enum CONSOLE_TYPE : uint32_t {
DEVELOPMENT_KIT,
TEST_KIT,
};
enum CONSOLE_MEMORY_CONFIG_STATE : uint32_t {
DM_CONSOLEMEMCONFIG_NOADDITIONALMEM,
DM_CONSOLEMEMCONFIG_ADDITIONALMEMDISABLED,

View File

@@ -191,7 +191,7 @@ static bool exception_pointers_handler(HostExceptionReport* report) {
xe::kernel::kernel_state()->emulator()->title_version();
title_info =
fmt::format("{}({:08X}) - {}", title_name, title_id, title_version);
fmt::format("{} ({:08X}) - {}", title_name, title_id, title_version);
}
}