From 10a5432df72a68bf178163954e2dafdc92f7a742 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 7 Sep 2017 21:38:59 -0700 Subject: [PATCH] Libretro: Clean up old logging code --- src/platform/libretro/libretro.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/platform/libretro/libretro.c b/src/platform/libretro/libretro.c index 934fca788..cf3d55757 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