all repos — mgba @ 10a5432df72a68bf178163954e2dafdc92f7a742

mGBA Game Boy Advance Emulator

Libretro: Clean up old logging code
Vicki Pfau vi@endrift.com
Thu, 07 Sep 2017 21:38:59 -0700
commit

10a5432df72a68bf178163954e2dafdc92f7a742

parent

3ae911b829a3700338918842224fa90b71e11655

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M src/platform/libretro/libretro.csrc/platform/libretro/libretro.c

@@ -10,6 +10,7 @@

#include <mgba/core/blip_buf.h> #include <mgba/core/cheats.h> #include <mgba/core/core.h> +#include <mgba/core/log.h> #include <mgba/core/version.h> #ifdef M_CORE_GB #include <mgba/gb/core.h>

@@ -582,7 +583,12 @@ retroLevel = RETRO_LOG_DEBUG;

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