Move SysMemForKernel to sceKernelMemory

As SysMemForUser in there
This commit is contained in:
sum2012 authored and Henrik Rydgård committed 2020-04-26 11:18:41 +02:00
1 parent 8d8ba3e963
commit a8c2c02b82
3 files changed
+37

No files matched your search

+30
View File
@@ -2300,3 +2300,33 @@ void Register_SysMemForKernel() {
void Register_SysMemUserForUser() {
RegisterModule("SysMemUserForUser", ARRAY_SIZE(SysMemUserForUser), SysMemUserForUser);
}
static int sceKernelCreateHeap(int partitionId, int size, int flags, const char *Name)
{
return hleLogError(SCEKERNEL, 0, "");
}
static int sceKernelAllocHeapMemory(int heapId, int size)
{
return hleLogError(SCEKERNEL, 0, "");
}
static int sceKernelDeleteHeap(int heapId)
{
return hleLogError(SCEKERNEL, 0, "");
}
const HLEFunction SysMemForKernel[] =
{
{ 0X636C953B, &WrapI_II<sceKernelAllocHeapMemory>, "sceKernelAllocHeapMemory", 'I', "ii" },
{ 0XC9805775, &WrapI_I<sceKernelDeleteHeap>, "sceKernelDeleteHeap", 'I', "i" },
{ 0X1C1FBFE7, &WrapI_IIIC<sceKernelCreateHeap>, "sceKernelCreateHeap", 'I', "iiis" },
};
void Register_SysMemForKernel()
{
RegisterModule("SysMemForKernel", ARRAY_SIZE(SysMemForKernel), SysMemForKernel);
}