From bf5ddc6b71ebcc1c05eb7b38a5b69cbc5b96a35d Mon Sep 17 00:00:00 2001 From: Adrian <78108584+AdrianCassar@users.noreply.github.com> Date: Mon, 16 Feb 2026 14:56:10 +0000 Subject: [PATCH] [APP] Added memory unit (MU) mount option --- src/xenia/app/xenia_main.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/xenia/app/xenia_main.cc b/src/xenia/app/xenia_main.cc index cf8451aef..264a70e6e 100644 --- a/src/xenia/app/xenia_main.cc +++ b/src/xenia/app/xenia_main.cc @@ -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("\\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) {