mirror of
https://github.com/libretro/sameduck.git
synced 2024-12-02 23:16:19 +00:00
Fixed a bug where the SDL port exited on “warning” logs when loading ROMs
This commit is contained in:
parent
9b89d76b3b
commit
1e228e1d9b
11
SDL/main.c
11
SDL/main.c
@ -385,18 +385,19 @@ restart:
|
||||
GB_set_sample_rate(&gb, have_aspec.freq);
|
||||
}
|
||||
|
||||
bool error = false;
|
||||
start_capturing_logs();
|
||||
if (dmg) {
|
||||
GB_load_boot_rom(&gb, executable_relative_path("dmg_boot.bin"));
|
||||
error = GB_load_boot_rom(&gb, executable_relative_path("dmg_boot.bin"));
|
||||
}
|
||||
else {
|
||||
GB_load_boot_rom(&gb, executable_relative_path("cgb_boot.bin"));
|
||||
error = GB_load_boot_rom(&gb, executable_relative_path("cgb_boot.bin"));
|
||||
}
|
||||
end_capturing_logs(true, true);
|
||||
end_capturing_logs(true, error);
|
||||
|
||||
start_capturing_logs();
|
||||
GB_load_rom(&gb, filename);
|
||||
end_capturing_logs(true, true);
|
||||
error = GB_load_rom(&gb, filename);
|
||||
end_capturing_logs(true, error);
|
||||
|
||||
size_t path_length = strlen(filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user