Initial support for xex patching

This commit is contained in:
Gliniak
2020-10-09 21:02:32 +02:00
parent 945976a31d
commit 91f43a374d
13 changed files with 549 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ class UserModule : public XModule {
const std::string& path() const override { return path_; }
const std::string& name() const override { return name_; }
std::optional<uint64_t> hash() const { return hash_; }
enum ModuleFormat {
kModuleFormatUndefined = 0,
@@ -97,9 +98,11 @@ class UserModule : public XModule {
private:
X_STATUS LoadXexContinue();
void CalculateHash();
std::string name_;
std::string path_;
std::optional<uint64_t> hash_ = std::nullopt;
uint32_t guest_xex_header_ = 0;
ModuleFormat module_format_ = kModuleFormatUndefined;