Assign XModule path on load rather than in the constructor
This commit is contained in:
@@ -19,11 +19,17 @@ namespace xe {
|
||||
namespace kernel {
|
||||
|
||||
KernelModule::KernelModule(KernelState* kernel_state, const char* path)
|
||||
: XModule(kernel_state, ModuleType::kKernelModule, path) {
|
||||
: XModule(kernel_state, ModuleType::kKernelModule) {
|
||||
emulator_ = kernel_state->emulator();
|
||||
memory_ = emulator_->memory();
|
||||
export_resolver_ = kernel_state->emulator()->export_resolver();
|
||||
|
||||
path_ = path;
|
||||
name_ = NameFromPath(path);
|
||||
|
||||
// Persist this object through reloads.
|
||||
host_object_ = true;
|
||||
|
||||
// HACK: Allocates memory where xboxkrnl.exe would be!
|
||||
// TODO: Need to free this memory when necessary.
|
||||
auto heap = memory()->LookupHeap(0x80040000);
|
||||
|
||||
Reference in New Issue
Block a user