[XBDM] Implemented DmGetConsoleType
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user