diff --git a/src/platform/libretro/libretro.c b/src/platform/libretro/libretro.c index d19c5006f..8cd5f4637 100644 --- a/src/platform/libretro/libretro.c +++ b/src/platform/libretro/libretro.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #ifdef M_CORE_GB #include @@ -582,7 +583,12 @@ void GBARetroLog(struct mLogger* logger, int category, enum mLogLevel level, con break; } #ifdef NDEBUG - if (category == _mLOG_CAT_GBA_BIOS()) { + static int biosCat = -1; + if (biosCat < 0) { + biosCat = mLogCategoryById("gba.bios"); + } + + if (category == biosCat) { return; } #endif