XexModule: Resolve user library imports

This commit is contained in:
Dr. Chat
2015-05-18 01:31:59 -05:00
parent 88733bf8ba
commit 589e672d20
3 changed files with 91 additions and 43 deletions

View File

@@ -129,7 +129,7 @@ X_STATUS XUserModule::LoadFromMemory(const void* addr, const size_t length) {
// Prepare the module for execution.
// Runtime takes ownership.
auto xex_module = std::make_unique<XexModule>(processor);
auto xex_module = std::make_unique<XexModule>(processor, kernel_state());
if (!xex_module->Load(name_, path_, xex_)) {
return X_STATUS_UNSUCCESSFUL;
}