Clean up error handling a bit
Jeffrey Pfau jeffrey@endrift.com
Mon, 30 Sep 2013 01:31:14 -0700
2 files changed,
6 insertions(+),
3 deletions(-)
M
src/gba/gba.h
→
src/gba/gba.h
@@ -32,11 +32,10 @@
enum GBALogLevel { GBA_LOG_STUB, GBA_LOG_DEBUG, + GBA_LOG_GAME_ERROR, GBA_LOG_INFO, GBA_LOG_WARN, GBA_LOG_ERROR, - - GBA_LOG_GAME_ERROR }; enum GBAKey {
M
src/gba/renderers/video-software.c
→
src/gba/renderers/video-software.c
@@ -283,8 +283,12 @@ case REG_WINOUT:
softwareRenderer->winout.packed = value; softwareRenderer->objwin.packed = value >> 8; break; + case REG_MOSAIC: + case REG_GREENSWP: + GBALog(0, GBA_LOG_STUB, "Stub video register write: 0x%03X", address); + break; default: - GBALog(0, GBA_LOG_STUB, "Stub video register write: %03x", address); + GBALog(0, GBA_LOG_GAME_ERROR, "Invalid video register: 0x%03X", address); } return value; }