GetModule(NULL).
This commit is contained in:
parent
5fa82364ba
commit
5319b31829
|
@ -63,7 +63,11 @@ KernelState* KernelState::shared() {
|
||||||
}
|
}
|
||||||
|
|
||||||
XModule* KernelState::GetModule(const char* name) {
|
XModule* KernelState::GetModule(const char* name) {
|
||||||
if (xestrcasecmpa(name, "xam.xex") == 0) {
|
if (!name) {
|
||||||
|
// NULL name = self.
|
||||||
|
// TODO(benvanik): lookup module from caller address.
|
||||||
|
return GetExecutableModule();
|
||||||
|
} else if (xestrcasecmpa(name, "xam.xex") == 0) {
|
||||||
auto module = emulator_->xam();
|
auto module = emulator_->xam();
|
||||||
module->Retain();
|
module->Retain();
|
||||||
return module;
|
return module;
|
||||||
|
|
Loading…
Reference in New Issue