[Kernel] Only set privilege 0xB if mount_cache is set

This commit is contained in:
emoose 2020-01-15 09:45:27 +00:00 committed by illusion
parent 7d45be0a0e
commit d6eac0e85d
1 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,8 @@
#include "xenia/kernel/xboxkrnl/xboxkrnl_private.h" #include "xenia/kernel/xboxkrnl/xboxkrnl_private.h"
#include "xenia/xbox.h" #include "xenia/xbox.h"
DECLARE_bool(mount_cache);
namespace xe { namespace xe {
namespace kernel { namespace kernel {
namespace xboxkrnl { namespace xboxkrnl {
@ -32,7 +34,7 @@ dword_result_t XexCheckExecutablePrivilege(dword_t privilege) {
return 0; 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 // If this privilege is set, the cache-partition code baked into most
// games skips a huge chunk of device-init code (registering a custom // games skips a huge chunk of device-init code (registering a custom
// STFC filesystem handler with the kernel, etc), and just symlinks the // STFC filesystem handler with the kernel, etc), and just symlinks the