Test: Don't rely on core for frames elapsed

This commit is contained in:
Vicki Pfau 2017-04-18 02:53:22 -07:00
parent 9b0a5e566e
commit 1731d4f975
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,7 @@ Bugfixes:
- GBA Hardware: Fix crash if a savestate lies about game hardware
- Test: Fix crash when fuzzing fails to load a file
- GBA: Fix multiboot loading resulting in too small WRAM
- Test: Don't rely on core for frames elapsed
Misc:
- SDL: Remove scancode key input
- GBA Video: Clean up unused timers

View File

@ -176,9 +176,10 @@ loadError:
static void _fuzzRunloop(struct mCore* core, int frames) {
do {
core->runFrame(core);
--frames;
blip_clear(core->getAudioChannel(core, 0));
blip_clear(core->getAudioChannel(core, 1));
} while (core->frameCounter(core) < frames && !_dispatchExiting);
} while (frames > 0 && !_dispatchExiting);
}
static void _fuzzShutdown(int signal) {