Compare commits

...

5 Commits

Author SHA1 Message Date
Maschell 8d26df6e58 Update Dockerfile 2024-04-24 19:46:19 +02:00
Maschell 34fcfd06b6 Export KernelSetupDefaultSyscalls 2024-04-24 19:46:19 +02:00
Maschell 90f2bfe6db Update Makefile to be compatible with CLion 2024-04-24 19:46:19 +02:00
Maschell f0a7015033 Bump version to 0.2.2 2024-04-24 19:46:19 +02:00
Maschell da3b083dfa Update .gitignore to ignore .zip files 2024-04-24 19:46:19 +02:00
4 changed files with 8 additions and 12 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ build/
cmake-build-debug/
CMakeLists.txt
*.wms
*.zip

View File

@ -1,5 +1,5 @@
FROM ghcr.io/wiiu-env/devkitppc:20230621
FROM ghcr.io/wiiu-env/devkitppc:20240423
COPY --from=ghcr.io/wiiu-env/wiiumodulesystem:20230719 /artifacts $DEVKITPRO
COPY --from=ghcr.io/wiiu-env/wiiumodulesystem:20240424 /artifacts $DEVKITPRO
WORKDIR project

View File

@ -97,7 +97,7 @@ export LIBPATHS := $(foreach dir,$(LIBDIRS),-L$(dir)/lib)
all: $(BUILD)
$(BUILD):
@[ -d $@ ] || mkdir -p $@
@$(shell [ ! -d $(BUILD) ] && mkdir -p $(BUILD))
@$(MAKE) --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile
#-------------------------------------------------------------------------------

View File

@ -9,7 +9,7 @@ WUMS_MODULE_EXPORT_NAME("homebrew_kernel");
WUMS_MODULE_SKIP_INIT_FINI();
WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK();
#define MODULE_VERSION "v0.2.1"
#define MODULE_VERSION "v0.2.2"
#define MODULE_VERSION_FULL MODULE_VERSION MODULE_VERSION_EXTRA
#define KERN_SYSCALL_TBL1 0xFFE84C70 //Unknown
@ -202,20 +202,14 @@ void KernelPatchSyscall(int index, uint32_t addr) {
kern_write((void *) (KERN_SYSCALL_TBL5 + index * 4), addr);
}
void kernelInitialize() {
static uint8_t ucSyscallsSetupRequired = 1;
if (!ucSyscallsSetupRequired) {
return;
}
ucSyscallsSetupRequired = 0;
void KernelSetupDefaultSyscalls() {
KernelPatchSyscall(0x25, (uint32_t) SCKernelCopyData);
KernelPatchSyscall(0x36, (uint32_t) KernelReadSRsInternalFunc);
KernelPatchSyscall(0x0A, (uint32_t) KernelWriteSRsInternalFunc);
}
WUMS_INITIALIZE(myargs) {
kernelInitialize();
KernelSetupDefaultSyscalls();
}
WUMS_APPLICATION_STARTS() {
@ -226,3 +220,4 @@ WUMS_EXPORT_FUNCTION(KernelCopyData);
WUMS_EXPORT_FUNCTION(KernelWriteSRs);
WUMS_EXPORT_FUNCTION(KernelReadSRs);
WUMS_EXPORT_FUNCTION(KernelPatchSyscall);
WUMS_EXPORT_FUNCTION(KernelSetupDefaultSyscalls);