mirror of https://github.com/mgba-emu/mgba.git
Libretro: Clean up old logging code
This commit is contained in:
parent
3ae911b829
commit
10a5432df7
|
@ -10,6 +10,7 @@
|
||||||
#include <mgba/core/blip_buf.h>
|
#include <mgba/core/blip_buf.h>
|
||||||
#include <mgba/core/cheats.h>
|
#include <mgba/core/cheats.h>
|
||||||
#include <mgba/core/core.h>
|
#include <mgba/core/core.h>
|
||||||
|
#include <mgba/core/log.h>
|
||||||
#include <mgba/core/version.h>
|
#include <mgba/core/version.h>
|
||||||
#ifdef M_CORE_GB
|
#ifdef M_CORE_GB
|
||||||
#include <mgba/gb/core.h>
|
#include <mgba/gb/core.h>
|
||||||
|
@ -582,7 +583,12 @@ void GBARetroLog(struct mLogger* logger, int category, enum mLogLevel level, con
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
if (category == _mLOG_CAT_GBA_BIOS()) {
|
static int biosCat = -1;
|
||||||
|
if (biosCat < 0) {
|
||||||
|
biosCat = mLogCategoryById("gba.bios");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (category == biosCat) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue