From 0143b2e867d0a4d371f79ea03a5bf2173f74658c Mon Sep 17 00:00:00 2001 From: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com> Date: Mon, 17 Apr 2023 22:40:54 +0200 Subject: [PATCH] Update for latest libraries --- Dockerfile | 31 ++----------------------------- Makefile | 2 +- README.md | 3 ++- source/Gfx.cpp | 3 --- source/screens/GeneralScreen.cpp | 14 -------------- 5 files changed, 5 insertions(+), 48 deletions(-) diff --git a/Dockerfile b/Dockerfile index b89a806..2ba1a41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,32 +1,5 @@ -FROM ghcr.io/wiiu-env/devkitppc:20230326 +FROM ghcr.io/wiiu-env/devkitppc:20230417 -COPY --from=ghcr.io/wiiu-env/libmocha:20220903 /artifacts $DEVKITPRO - -# build and install latest wut -WORKDIR / -RUN \ -mkdir wut && \ -cd wut && \ -git init . && \ -git remote add origin https://github.com/devkitPro/wut.git && \ -git fetch --depth 1 origin 451a1828f7646053b59ebacd813135e0300c67e8 && \ -git checkout FETCH_HEAD -WORKDIR /wut -RUN make -j$(nproc) -RUN make install - -# build and install latest sdl -WORKDIR / -RUN \ -mkdir SDL && \ -cd SDL && \ -git init . && \ -git remote add origin https://github.com/GaryOderNichts/SDL.git && \ -git fetch --depth 1 origin 687746c8c9514b5d48d5f9665a1d5fa36c5e5547 && \ -git checkout FETCH_HEAD -WORKDIR /SDL -RUN /opt/devkitpro/portlibs/wiiu/bin/powerpc-eabi-cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$DEVKITPRO/portlibs/wiiu -RUN cmake --build build -RUN cmake --install build +COPY --from=ghcr.io/wiiu-env/libmocha:20230417 /artifacts $DEVKITPRO WORKDIR /project diff --git a/Makefile b/Makefile index d1da7ef..43adb55 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ CXXFLAGS := $(CFLAGS) -std=gnu++20 ASFLAGS := $(ARCH) LDFLAGS = $(ARCH) $(RPXSPECS) -Wl,-Map,$(notdir $*.map) -LIBS := -lcurl -lmbedtls -lmbedcrypto -lmbedx509 -lSDL2 -lSDL2_ttf -lfreetype -lpng -lbz2 -lz -lmocha -lwut +LIBS := -lcurl -lmbedtls -lmbedcrypto -lmbedx509 -lSDL2 -lSDL2_ttf -lfreetype -lharfbuzz -lfreetype -lpng -lbz2 -lz -lmocha -lwut #------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level diff --git a/README.md b/README.md index 06d8e65..10d470c 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,8 @@ The database is publicly accessible but personally identifying information will For building you need: - [wut](https://github.com/devkitPro/wut) - [libmocha](https://github.com/wiiu-env/libmocha) -- [SDL2 v2.22](https://github.com/GaryOderNichts/SDL/tree/wiiu-sdl2-2.0.22) +- [wiiu-sdl2](https://github.com/GaryOderNichts/SDL/tree/wiiu-sdl2-2.26) +- wiiu-sdl2_ttf - wiiu-curl - wiiu-mbedtls diff --git a/source/Gfx.cpp b/source/Gfx.cpp index ef34f49..53b3345 100644 --- a/source/Gfx.cpp +++ b/source/Gfx.cpp @@ -106,9 +106,6 @@ bool Init() return false; } - // FIXME Probably SDL bug? If we don't draw before FC_LoadFont_RW our viewport shrinks - Gfx::DrawRectFilled(0, 0, 0, 0, COLOR_BLACK); - if (!FC_LoadFont_RW(monospaceFont, renderer, SDL_RWFromMem((void*)ter_u32b_bdf, ter_u32b_bdf_size), 1, 32, Gfx::COLOR_BLACK, TTF_STYLE_NORMAL)) { FC_FreeFont(monospaceFont); return false; diff --git a/source/screens/GeneralScreen.cpp b/source/screens/GeneralScreen.cpp index a026688..f372e17 100644 --- a/source/screens/GeneralScreen.cpp +++ b/source/screens/GeneralScreen.cpp @@ -8,20 +8,6 @@ #include #include -extern "C" -{ - -typedef struct { - uint32_t major; - uint32_t minor; - uint32_t patch; - char region; -} MCPSystemVersion; - -MCPError MCP_GetSystemVersion(int32_t handle, MCPSystemVersion* systemVersion); - -} - namespace {