Libretro: Disable logging game errors, BIOS calls and stubs in release builds

This commit is contained in:
Jeffrey Pfau 2016-05-08 12:33:55 -07:00
parent 3c45983d10
commit 2bfd721ea7
2 changed files with 10 additions and 2 deletions

View File

@ -28,6 +28,8 @@ Misc:
- Qt: Remove use of NaN
- FFmpeg: Update dependencies on Ubuntu
- All: Allow use of external minizip library
- GBA Video: Null renderer should return proper register values
- Libretro: Disable logging game errors, BIOS calls and stubs in release builds
0.4.0: (2016-02-02)
Features:

View File

@ -451,13 +451,19 @@ void GBARetroLog(struct GBAThread* thread, enum GBALogLevel level, const char* f
break;
case GBA_LOG_INFO:
case GBA_LOG_GAME_ERROR:
case GBA_LOG_SWI:
case GBA_LOG_STATUS:
retroLevel = RETRO_LOG_INFO;
break;
case GBA_LOG_DEBUG:
case GBA_LOG_SWI:
case GBA_LOG_STUB:
case GBA_LOG_SIO:
#ifdef NDEBUG
return;
#else
retroLevel = RETRO_LOG_DEBUG;
break;
#endif
case GBA_LOG_DEBUG:
retroLevel = RETRO_LOG_DEBUG;
break;
}