More reworking of Callbacks, plus some other little fixes.

This commit is contained in:
Henrik Rydgard committed 2012-11-07 15:44:48 +01:00
1 parent cf098dfd67
commit aea0580297
19 files changed
+704 -292

No files matched your search

+4 -2
View File
@@ -567,6 +567,8 @@ u32 sceKernelLoadModule(const char *name, u32 flags)
return SCE_KERNEL_ERROR_ILLEGAL_OBJECT;
}
DEBUG_LOG(LOADER, "sceKernelLoadModule(%s, %08x)", name, flags);
SceKernelLMOption *lmoption = 0;
int position = 0;
// TODO: Use position to decide whether to load high or low
@@ -633,8 +635,8 @@ void sceKernelUnloadModule()
void sceKernelGetModuleIdByAddress()
{
ERROR_LOG(HLE,"UNIMPL sceKernelGetModuleIdByAddress(%08x)", PARAM(0));
if (PARAM(0) == 0x08800000)
ERROR_LOG(HLE,"HACKIMPL sceKernelGetModuleIdByAddress(%08x)", PARAM(0));
if ((PARAM(0) & 0xFFFF0000) == 0x08800000)
RETURN(mainModuleID);
else
RETURN(0);