diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 158adfd..e354a5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: clang-format: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: clang-format run: | docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./src @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-22.04 needs: clang-format steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: build binary run: | docker build . -t builder diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a24c01e..42a7267 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -6,7 +6,7 @@ jobs: clang-format: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: clang-format run: | docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./src @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-22.04 needs: clang-format steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: build binary run: | docker build . -t builder diff --git a/Dockerfile b/Dockerfile index ecb78ff..2c69585 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,3 @@ -FROM ghcr.io/wiiu-env/devkitppc:20230417 +FROM ghcr.io/wiiu-env/devkitppc:20230621 WORKDIR project \ No newline at end of file diff --git a/src/imports.h b/src/imports.h index b5bf0c4..7eff504 100644 --- a/src/imports.h +++ b/src/imports.h @@ -59,6 +59,7 @@ IMPORT(OSGetThreadSpecific); IMPORT(OSSetThreadSpecific); IMPORT(OSReport); IMPORT(OSSwapAtomic); +IMPORT(OSIsDebuggerPresent); IMPORT(exit); IMPORT(_Exit); diff --git a/src/main.cpp b/src/main.cpp index 89c3df7..c595a2c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -90,6 +90,10 @@ extern "C" uint32_t start_wrapper(int argc, char **argv) { return entryPoint; } +extern "C" struct _reent *__syscall_getreent(void) { + return _impure_ptr; +} + extern "C" int _start(int argc, char **argv) { uint32_t entryPoint = start_wrapper(argc, argv);