Call the kernelInitialize(); inside the WUMS_INITIALIZE hook

This commit is contained in:
Maschell 2020-05-29 17:38:48 +02:00
parent 92d751f1e7
commit 59d982a4b2

View File

@ -19,7 +19,6 @@ extern void KernelCopyDataInternal(uint32_t dst, uint32_t src, uint32_t len);
void kernelInitialize();
extern void KernelCopyData(uint32_t dst, uint32_t src, uint32_t len){
kernelInitialize();
KernelCopyDataInternal(dst, src, len);
}
WUMS_EXPORT_FUNCTION(KernelCopyData);
@ -88,6 +87,8 @@ void kernelInitialize() {
ucSyscallsSetupRequired = 0;
PatchSyscall(0x25, (uint32_t) SCKernelCopyData);
WUMS_INITIALIZE(){
kernelInitialize();
}
int main(int argc, char **argv) {