all repos — mgba @ be36c1b5d66095dd33d635a4761ab9c589c545c6

mGBA Game Boy Advance Emulator

Clean up error handling a bit
Jeffrey Pfau jeffrey@endrift.com
Mon, 30 Sep 2013 01:31:14 -0700
commit

be36c1b5d66095dd33d635a4761ab9c589c545c6

parent

3439fa5bf41eb9a8f71e73938ff209804e54eb84

2 files changed, 6 insertions(+), 3 deletions(-)

jump to
M src/gba/gba.hsrc/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.csrc/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; }