patching more dummy functions

This commit is contained in:
georgemoralis 2023-07-13 12:56:36 +03:00
parent 0ac4032d00
commit 063a689812
13 changed files with 69 additions and 16 deletions

View file

@ -0,0 +1,30 @@
#include "../Loader/Elf.h"
#include "LibKernel.h"
#include "Libs.h"
namespace HLE::Libs::LibKernel {
int sceKernelAllocateDirectMemory(off_t searchStart, off_t searchEnd, size_t len, size_t alignment, int memoryType, off_t* physAddrOut) { return 0;//OK
}
size_t sceKernelGetDirectMemorySize() { return 0;
}
int32_t sceKernelMapDirectMemory(void** addr, size_t len, int prot, int flags, off_t directMemoryStart, size_t alignment) { return 0;
}
int32_t sceKernelReleaseDirectMemory(off_t start, size_t len) { return 0;
}
int sceKernelCreateEqueue(/* SceKernelEqueue* eq*/int eq,const char* name)
{ return 0;
}
void LibKernel_Register(SymbolsResolver* sym) {
//memory
LIB_FUNCTION("rTXw65xmLIA", "libkernel", 1, "libkernel", 1, 1, sceKernelAllocateDirectMemory);
LIB_FUNCTION("pO96TwzOm5E", "libkernel", 1, "libkernel", 1, 1, sceKernelGetDirectMemorySize);
LIB_FUNCTION("L-Q3LEjIbgA", "libkernel", 1, "libkernel", 1, 1, sceKernelMapDirectMemory);
LIB_FUNCTION("MBuItvba6z8", "libkernel", 1, "libkernel", 1, 1, sceKernelReleaseDirectMemory);
//equeue
LIB_FUNCTION("D0OdFMjp46I", "libkernel", 1, "libkernel", 1, 1, sceKernelCreateEqueue);
}
};