[Kernel] Implemented XexLoadImageFromMemory

This commit is contained in:
Hyper
2024-08-26 22:13:27 +01:00
committed by Radosław Gliński
parent 1a9ff8fe67
commit a867320a87
5 changed files with 84 additions and 7 deletions

View File

@@ -182,6 +182,13 @@ X_STATUS UserModule::LoadFromMemory(const void* addr, const size_t length) {
return X_STATUS_SUCCESS;
}
X_STATUS UserModule::LoadFromMemoryNamed(const std::string_view raw_name,
const void* addr,
const size_t length) {
name_ = std::string(raw_name);
return LoadFromMemory(addr, length);
}
X_STATUS UserModule::LoadContinue() {
// LoadXexContinue: finishes loading XEX after a patch has been applied (or
// patch wasn't found)