From 5464daad84e47b8fc9930912ee976b9c8020e062 Mon Sep 17 00:00:00 2001 From: Derek Hensley Date: Wed, 26 Aug 2026 17:15:36 -0700 Subject: [PATCH] [n64-jp-1.1] libu64/gfxprint (#1874) --- src/boot/libu64/gfxprint.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/boot/libu64/gfxprint.c b/src/boot/libu64/gfxprint.c index 53e16d9626..5d96dc264a 100644 --- a/src/boot/libu64/gfxprint.c +++ b/src/boot/libu64/gfxprint.c @@ -1,5 +1,6 @@ #include "libu64/gfxprint.h" #include "attributes.h" +#include "macros.h" #define GFXP_FLAG_HIRAGANA (1 << 0) #define GFXP_FLAG_RAINBOW (1 << 1) @@ -8,6 +9,14 @@ #define GFXP_FLAG_ENLARGE (1 << 6) #define GFXP_FLAG_OPEN (1 << 7) +#if MM_VERSION < N64_US || DEBUG_FEATURES +#define GFXPRINT_PRINTF osSyncPrintf +#elif IDO_PRINTF_WORKAROUND +#define GFXPRINT_PRINTF(args) (void)0 +#else +#define GFXPRINT_PRINTF(format, ...) (void)0 +#endif + u64 sGfxPrintFontTLUT[] = { #include "assets/boot/gfxprint/gfx_print_font_tlut.rgba16.inc.c" }; @@ -225,6 +234,8 @@ void GfxPrint_Open(GfxPrint* this, Gfx* dList) { this->flags |= GFXP_FLAG_OPEN; this->dList = dList; GfxPrint_Setup(this); + } else { + GFXPRINT_PRINTF(T("gfxprint_open:2重オープンです\n", "gfxprint_open: Double open\n")); } }