Use module start func, not entry, if specified.

Fixes #5539, Ranshima Monogatari Rare Land Story.  Still logging in case
it causes a problem.
This commit is contained in:
Unknown W. Brackets
2014-06-07 06:28:23 -07:00
parent a53f165c06
commit 90b30f8bfe
+2
View File
@@ -1390,6 +1390,8 @@ void __KernelStartModule(Module *m, int args, const char *argp, SceKernelSMOptio
{
if (m->nm.module_start_func != m->nm.entry_addr)
WARN_LOG_REPORT(LOADER, "Main module has start func (%08x) different from entry (%08x)?", m->nm.module_start_func, m->nm.entry_addr);
// TODO: Should we try to run both?
currentMIPS->pc = m->nm.module_start_func;
}
SceUID threadID = __KernelSetupRootThread(m->GetUID(), args, argp, options->priority, options->stacksize, options->attribute);