Add some missing HLE functions, fix loading unencrypted EBOOT.BIN

This commit is contained in:
Henrik Rydgard committed 2012-11-06 16:20:13 +01:00
1 parent 48bc1afe26
commit 28879934d6
7 files changed
+21 -5

No files matched your search

+8 -1
View File
@@ -994,6 +994,13 @@ void sceKernelGetThreadId()
RETURN(retVal);
}
void sceKernelGetThreadCurrentPriority()
{
u32 retVal = __GetCurrentThread()->nt.currentPriority;
DEBUG_LOG(HLE,"%i = sceKernelGetThreadCurrentPriority()", retVal);
RETURN(retVal);
}
void sceKernelChangeCurrentThreadAttr()
{
int clearAttr = PARAM(0);
@@ -1018,7 +1025,7 @@ void sceKernelChangeThreadPriority()
}
else
{
ERROR_LOG(HLE,"%08x=sceKernelChangeThreadPriority(%i, %i) failed", error, id, PARAM(1));
ERROR_LOG(HLE,"%08x=sceKernelChangeThreadPriority(%i, %i) failed - no such thread", error, id, PARAM(1));
RETURN(error);
}
}