Update Atari2600.IEmulator.cs
Add a frame termination condition so the core doesn't silently crash.
This commit is contained in:
parent
7a799583e9
commit
e35b225fb0
|
@ -41,9 +41,12 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
|
|||
_rightDifficultySwitchHeld = false;
|
||||
}
|
||||
|
||||
int count = 0;
|
||||
while (!_tia.New_Frame)
|
||||
{
|
||||
Cycle();
|
||||
count++;
|
||||
if (count > 1000000) { throw new Exception("ERROR: Unable to resolve Frame. Please Report."); }
|
||||
}
|
||||
|
||||
_tia.New_Frame = false;
|
||||
|
|
Loading…
Reference in New Issue