Ignore requests for kernel32.dll
This commit is contained in:
parent
b6d7ccfb03
commit
489154e548
|
@ -75,6 +75,9 @@ XModule* KernelState::GetModule(const char* name) {
|
|||
auto module = emulator_->xboxkrnl();
|
||||
module->Retain();
|
||||
return module;
|
||||
} else if (xestrcasecmpa(name, "kernel32.dll") == 0) {
|
||||
// Some games request this, for some reason. wtf.
|
||||
return NULL;
|
||||
} else {
|
||||
// TODO(benvanik): support user modules/loading/etc.
|
||||
XEASSERTALWAYS();
|
||||
|
|
|
@ -208,9 +208,7 @@ SHIM_CALL XexGetModuleHandle_shim(
|
|||
|
||||
X_HANDLE module_handle = 0;
|
||||
int result = xeXexGetModuleHandle(module_name, &module_handle);
|
||||
if (result) {
|
||||
SHIM_SET_MEM_32(module_handle_ptr, module_handle);
|
||||
}
|
||||
SHIM_SET_MEM_32(module_handle_ptr, module_handle);
|
||||
|
||||
SHIM_SET_RETURN_32(result);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue