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