Libretro: Clean up old logging code

This commit is contained in:
Vicki Pfau 2017-09-07 21:38:59 -07:00
parent 3ae911b829
commit 10a5432df7
1 changed files with 7 additions and 1 deletions

View File

@ -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 @@ 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