diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18e3d48..52719f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: - name: zip artifact run: zip -r ${{ env.REPOSITORY_NAME }}_${{ env.DATETIME }}.zip *.wms - name: Create Release - uses: "softprops/action-gh-release@v1" + uses: "softprops/action-gh-release@v2" with: tag_name: ${{ env.REPOSITORY_NAME }}-${{ env.DATETIME }} draft: false diff --git a/.gitignore b/.gitignore index ba57c28..98a796f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ build/ cmake-build-debug/ CMakeLists.txt *.wms +*.zip diff --git a/Dockerfile b/Dockerfile index 0a1aac3..017897f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ -FROM ghcr.io/wiiu-env/devkitppc:20230621 +FROM ghcr.io/wiiu-env/devkitppc:20240423 COPY --from=ghcr.io/wiiu-env/libnotifications:20230621 /artifacts $DEVKITPRO COPY --from=ghcr.io/wiiu-env/libmappedmemory:20230621 /artifacts $DEVKITPRO COPY --from=ghcr.io/wiiu-env/libfunctionpatcher:20230621 /artifacts $DEVKITPRO -COPY --from=ghcr.io/wiiu-env/wiiumodulesystem:20230719 /artifacts $DEVKITPRO +COPY --from=ghcr.io/wiiu-env/wiiumodulesystem:20240424 /artifacts $DEVKITPRO WORKDIR project diff --git a/src/gui/SchriftGX2.cpp b/src/gui/SchriftGX2.cpp index 7752593..e7daeb6 100644 --- a/src/gui/SchriftGX2.cpp +++ b/src/gui/SchriftGX2.cpp @@ -217,6 +217,7 @@ ftgxCharData *SchriftGX2::cacheGlyphData(wchar_t charCode, int16_t pixelSize) { textureHeight = mtx.minHeight; SFT_Image img = { + .pixels = nullptr, .width = textureWidth, .height = textureHeight, }; @@ -307,7 +308,7 @@ bool SchriftGX2::loadGlyphData(SFT_Image *bmp, ftgxCharData *charData, ftGX2Data auto *src = (uint8_t *) bmp->pixels; auto *dst = (uint32_t *) charData->texture->surface.image; - uint32_t x, y; + int32_t x, y; for (y = 0; y < bmp->height; y++) { for (x = 0; x < bmp->width; x++) { @@ -391,6 +392,7 @@ int16_t SchriftGX2::getStyleOffsetHeight(int16_t format, uint16_t pixelSize) { */ uint16_t SchriftGX2::drawText(int16_t x, int16_t y, int16_t z, const wchar_t *text, int16_t pixelSize, const glm::vec4 &color, uint16_t textStyle, uint16_t textWidth, const float &textBlur, const float &colorBlurIntensity, const glm::vec4 &blurColor) { + (void) textWidth; if (!text) { return 0; } diff --git a/src/main.cpp b/src/main.cpp index 7a5b9e3..2303cde 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,7 +11,7 @@ WUMS_MODULE_EXPORT_NAME("homebrew_notifications"); -#define VERSION "v0.1.1" +#define VERSION "v0.1.2" WUMS_DEPENDS_ON(homebrew_memorymapping); WUMS_DEPENDS_ON(homebrew_functionpatcher);