[Kernel] Add command-line flag to toggle XEX patching.
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
#include "xenia/kernel/xfile.h"
|
||||
#include "xenia/kernel/xthread.h"
|
||||
|
||||
DEFINE_bool(xex_apply_patches, true, "Apply XEX patches.");
|
||||
|
||||
namespace xe {
|
||||
namespace kernel {
|
||||
|
||||
@@ -100,6 +102,7 @@ X_STATUS UserModule::LoadFromFile(std::string path) {
|
||||
return result;
|
||||
}
|
||||
|
||||
if (FLAGS_xex_apply_patches) {
|
||||
// Search for xexp patch file
|
||||
auto patch_entry = kernel_state()->file_system()->ResolvePath(path_ + "p");
|
||||
|
||||
@@ -123,6 +126,7 @@ X_STATUS UserModule::LoadFromFile(std::string path) {
|
||||
return X_STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return LoadXexContinue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user