Update Dockerfile to use latest wut version

This commit is contained in:
Maschell 2022-07-24 18:32:05 +02:00
parent 2288b67703
commit 2409afa86a
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,3 @@
FROM wiiuenv/devkitppc:20220213 FROM wiiuenv/devkitppc:20220728
WORKDIR project WORKDIR project

View File

@ -59,6 +59,7 @@ IMPORT(OSCompareAndSwapAtomic);
IMPORT(OSGetThreadSpecific); IMPORT(OSGetThreadSpecific);
IMPORT(OSSetThreadSpecific); IMPORT(OSSetThreadSpecific);
IMPORT(FSTimeToCalendarTime); IMPORT(FSTimeToCalendarTime);
IMPORT(OSIsDebuggerInitialized);
IMPORT(exit); IMPORT(exit);
IMPORT(_Exit); IMPORT(_Exit);
@ -94,6 +95,7 @@ IMPORT(FSGetFreeSpaceSize);
IMPORT(FSGetStat); IMPORT(FSGetStat);
IMPORT(FSRemove); IMPORT(FSRemove);
IMPORT(FSOpenFile); IMPORT(FSOpenFile);
IMPORT(FSOpenFileEx);
IMPORT(FSCloseFile); IMPORT(FSCloseFile);
IMPORT(FSOpenDir); IMPORT(FSOpenDir);
IMPORT(FSMakeDir); IMPORT(FSMakeDir);

View File

@ -66,9 +66,12 @@ bool CheckRunning() {
extern "C" void __init_wut(); extern "C" void __init_wut();
extern "C" void __fini_wut(); extern "C" void __fini_wut();
extern "C" void __init_wut_malloc();
extern "C" int _start(int argc, char **argv) __attribute__((section(".start_code"))); extern "C" int _start(int argc, char **argv) __attribute__((section(".start_code")));
extern "C" int _start(int argc, char **argv) { extern "C" int _start(int argc, char **argv) {
// We need to call __init_wut_malloc somewhere so wut_malloc will be used for the memory allocation.
__init_wut_malloc();
doKernelSetup(); doKernelSetup();
InitFunctionPointers(); InitFunctionPointers();
doKernelSetup2(); doKernelSetup2();