[APP] Added force_mount_devkit to config

This commit is contained in:
Adrian
2025-09-19 21:13:40 +01:00
committed by Radosław Gliński
parent 8d03766d03
commit e05b934eca
2 changed files with 34 additions and 9 deletions

View File

@@ -19,6 +19,8 @@
DECLARE_bool(debug);
DECLARE_bool(force_mount_devkit);
namespace xe {
namespace kernel {
namespace xbdm {
@@ -130,6 +132,10 @@ dword_result_t DmCloseLoadedModules_entry(lpdword_t walk_modules_ptr) {
DECLARE_XBDM_EXPORT1(DmCloseLoadedModules, kDebug, kStub);
dword_result_t DmMapDevkitDrive_entry(const ppc_context_t& ctx) {
if (cvars::force_mount_devkit) {
return 0;
}
auto devkit_device =
std::make_unique<xe::vfs::HostPathDevice>("\\DEVKIT", "devkit", false);