Be more forgiving about stack overflows. Some games commercially leak stack every once in a while when being stress-tested.

This commit is contained in:
Lior Halphon 2016-10-11 14:53:54 +03:00
parent fa35869bc4
commit 5cca2a4168

View File

@ -75,7 +75,7 @@ static void vblank(GB_gameboy_t *gb)
/* Detect common crashes and stop the test early */
if (frames < test_length - 1) {
if (gb->backtrace_size >= 0x80) {
if (gb->backtrace_size >= 0x300) {
GB_log(gb, "A stack overflow has probably occurred.\n");
frames = test_length - 1;
}