mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Merge pull request #22989 from hrydgard/startmodule-no-entry-status
Modules: Write 0 to the status when starting a module with no entry
This commit is contained in:
3 files changed
+6
-1
No files matched your search
@@ -3312,6 +3312,10 @@ int __KernelStartModule(SceUID moduleId, u32 argsize, u32 argAddr, u32 returnVal
|
||||
} else if (entryAddr == 0 || entryAddr == (u32)-1) {
|
||||
INFO_LOG(Log::sceModule, "__KernelStartModule(%d,asize=%08x,aptr=%08x,retptr=%08x): no entry address", moduleId, argsize, argAddr, returnValueAddr);
|
||||
module->nm.status = MODULE_STATUS_STARTED;
|
||||
// The status is still set to 0 (modules/nostart). R-Type Tactics gives up on its fonts otherwise.
|
||||
if (returnValueAddr) {
|
||||
Memory::WriteOrException_U32(0, returnValueAddr);
|
||||
}
|
||||
} else {
|
||||
ERROR_LOG(Log::sceModule, "__KernelStartModule(%d,asize=%08x,aptr=%08x,retptr=%08x): invalid entry address", moduleId, argsize, argAddr, returnValueAddr);
|
||||
return -1;
|
||||
|
||||
+1
-1
Submodule pspautotests updated: 33e5d3876c...3ccc35c76b.
Reference in new issue
Block a user