mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
Introduce Platform::Log
(#1640)
* Add Platform::Log and Platform::LogLevel * Replace most printf calls with Platform::Log calls * Move a brace down * Move some log entries to one Log call - Some implementations of Log may assume a full line * Log the MAC address as LogLevel::Info
This commit is contained in:

committed by
GitHub

parent
19280cff2d
commit
79dfb8dc8f
@ -21,6 +21,8 @@
|
||||
#include "NDS.h"
|
||||
#include "GPU.h"
|
||||
|
||||
using Platform::Log;
|
||||
using Platform::LogLevel;
|
||||
|
||||
// notes on color conversion
|
||||
//
|
||||
@ -218,7 +220,7 @@ u8 Unit::Read8(u32 addr)
|
||||
case 0x04D: return 0;
|
||||
}
|
||||
|
||||
printf("unknown GPU read8 %08X\n", addr);
|
||||
Log(LogLevel::Warn, "unknown GPU read8 %08X\n", addr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -247,7 +249,7 @@ u16 Unit::Read16(u32 addr)
|
||||
case 0x06C: return MasterBrightness;
|
||||
}
|
||||
|
||||
printf("unknown GPU read16 %08X\n", addr);
|
||||
Log(LogLevel::Warn, "unknown GPU read16 %08X\n", addr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -364,7 +366,7 @@ void Unit::Write8(u32 addr, u8 val)
|
||||
return;
|
||||
}
|
||||
|
||||
printf("unknown GPU write8 %08X %02X\n", addr, val);
|
||||
Log(LogLevel::Warn, "unknown GPU write8 %08X %02X\n", addr, val);
|
||||
}
|
||||
|
||||
void Unit::Write16(u32 addr, u16 val)
|
||||
|
Reference in New Issue
Block a user