From d6eac0e85d874613070ed4d44af87a737b1215d3 Mon Sep 17 00:00:00 2001 From: emoose Date: Wed, 15 Jan 2020 09:45:27 +0000 Subject: [PATCH] [Kernel] Only set privilege 0xB if mount_cache is set --- src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc b/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc index 644d5be41..c283ec68e 100644 --- a/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc +++ b/src/xenia/kernel/xboxkrnl/xboxkrnl_modules.cc @@ -15,6 +15,8 @@ #include "xenia/kernel/xboxkrnl/xboxkrnl_private.h" #include "xenia/xbox.h" +DECLARE_bool(mount_cache); + namespace xe { namespace kernel { namespace xboxkrnl { @@ -32,7 +34,7 @@ dword_result_t XexCheckExecutablePrivilege(dword_t privilege) { return 0; } - if (privilege == 0xB) { // TitleInsecureUtilityDrive + if (cvars::mount_cache && privilege == 0xB) { // TitleInsecureUtilityDrive // If this privilege is set, the cache-partition code baked into most // games skips a huge chunk of device-init code (registering a custom // STFC filesystem handler with the kernel, etc), and just symlinks the