Set up SameBoy log callback

This commit is contained in:
Rupert Carmichael 2021-07-31 13:47:31 -04:00 committed by Tim Allen
parent 8c1f41e65a
commit 3ccb543622
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,9 @@ namespace SameBoy {
static auto vblank(GB_gameboy_t*) -> void {
}
static auto log(GB_gameboy_t *gb, const char *string, GB_log_attributes attributes) -> void {
}
}
auto ICD::synchronizeCPU() -> void {
@ -99,6 +102,7 @@ auto ICD::load() -> bool {
GB_set_rgb_encode_callback(&sameboy, &SameBoy::rgb_encode);
GB_apu_set_sample_callback(&sameboy, &SameBoy::sample);
GB_set_vblank_callback(&sameboy, &SameBoy::vblank);
GB_set_log_callback(&sameboy, &SameBoy::log);
GB_set_pixels_output(&sameboy, &bitmap[0]);
if(auto loaded = platform->load(ID::GameBoy, "Game Boy", "gb")) {
information.pathID = loaded.pathID;