[APP] Added memory unit (MU) mount option

This commit is contained in:
Adrian
2026-02-16 14:56:10 +00:00
committed by Radosław Gliński
parent f9d4dbc8e9
commit bf5ddc6b71

View File

@@ -91,6 +91,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);
DEFINE_transient_path(target, "",
@@ -643,6 +646,21 @@ void EmulatorApp::EmulatorThread() {
fs->RegisterSymbolicLink("e:", "\\DEVKIT");
}
if (cvars::mount_memory_unit) {
auto mu_device =
std::make_unique<xe::vfs::HostPathDevice>("\\MU", "MU", false);
if (!mu_device->Initialize()) {
XELOGE("Unable to scan MU path");
}
if (!fs->RegisterDevice(std::move(mu_device))) {
XELOGE("Unable to register MU path");
}
fs->RegisterSymbolicLink("MU:", "\\MU");
}
// Set a debug handler.
// This will respond to debugging requests so we can open the debug UI.
if (cvars::debug) {