mirror of
https://github.com/izzy2lost/xenia-edge.git
synced 2026-07-06 00:20:26 -07:00
Merge commit 'abaa0e4c965265060a89322a1fe3d87384690f82' into canary-rebase
This commit is contained in:
@@ -111,6 +111,9 @@ DEFINE_bool(mount_scratch, false, "Enable scratch mount", "Storage");
|
||||
DEFINE_bool(mount_cache, true, "Enable cache mount", "Storage");
|
||||
UPDATE_from_bool(mount_cache, 2024, 8, 31, 20, false);
|
||||
|
||||
DEFINE_bool(mount_memory_unit, false, "Enable memory unit (MU) mount",
|
||||
"Storage");
|
||||
|
||||
DECLARE_bool(force_mount_devkit);
|
||||
|
||||
DECLARE_path(target); // Defined in windowed_app_main_qt.cc
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
|
||||
DEFINE_bool(mount_scratch, false, "Enable scratch mount", "Storage");
|
||||
DEFINE_bool(mount_cache, false, "Enable cache mount", "Storage");
|
||||
DEFINE_bool(mount_memory_unit, false, "Enable memory unit (MU) mount",
|
||||
"Storage");
|
||||
|
||||
DEFINE_path(test_path, "src/xenia/cpu/ppc/testing/",
|
||||
"Directory scanned for test files.", "Other");
|
||||
|
||||
@@ -109,6 +109,7 @@ DECLARE_bool(allow_plugins);
|
||||
|
||||
DECLARE_bool(mount_scratch);
|
||||
DECLARE_bool(mount_cache);
|
||||
DECLARE_bool(mount_memory_unit);
|
||||
DECLARE_bool(force_mount_devkit);
|
||||
|
||||
DEFINE_int32(priority_class, 0,
|
||||
@@ -1688,6 +1689,20 @@ void Emulator::MountStandardDrives() {
|
||||
}
|
||||
}
|
||||
|
||||
if (cvars::mount_memory_unit) {
|
||||
auto mu_device = std::make_unique<xe::vfs::HostPathDevice>(
|
||||
"\\MU", storage_root_ / "mu", false);
|
||||
if (!mu_device->Initialize()) {
|
||||
XELOGE("Unable to scan MU path");
|
||||
} else {
|
||||
if (!fs->RegisterDevice(std::move(mu_device))) {
|
||||
XELOGE("Unable to register MU path");
|
||||
} else {
|
||||
fs->RegisterSymbolicLink("MU:", "\\MU");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (cvars::force_mount_devkit) {
|
||||
auto devkit_device =
|
||||
std::make_unique<xe::vfs::HostPathDevice>("\\DEVKIT", "devkit", false);
|
||||
|
||||
@@ -23,6 +23,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 {
|
||||
@@ -58,6 +62,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_out) {
|
||||
if (!console_type_out) {
|
||||
return X_E_INVALIDARG;
|
||||
}
|
||||
|
||||
*console_type_out = static_cast<uint32_t>(cvars::console_type);
|
||||
|
||||
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,
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
DEFINE_bool(mount_scratch, false, "Enable scratch mount", "Storage");
|
||||
DEFINE_bool(mount_cache, false, "Enable cache mount", "Storage");
|
||||
DEFINE_bool(mount_memory_unit, false, "Enable memory unit (MU) mount",
|
||||
"Storage");
|
||||
|
||||
#define CATCH_CONFIG_RUNNER
|
||||
#include "third_party/catch/single_include/catch2/catch.hpp"
|
||||
|
||||
Reference in New Issue
Block a user