mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +03:00
Fix: 01499: Various Drivers: Launching games from in-game [TAB] menu 2-3 times in a row throws access violation.
My fix is a bit heavy handed. The real access violation happens in update_digital_joysticks() after the comment "read all the associated ports" and before the next comment
This commit is contained in:
parent
c39f072404
commit
c64886cc69
@ -2865,6 +2865,10 @@ static void input_port_frame(running_machine *machine)
|
||||
attotime curtime = timer_get_time();
|
||||
int portnum, bitnum;
|
||||
|
||||
/* get out if we are just initializing */
|
||||
if (mame_get_phase(machine) != MAME_PHASE_RUNNING)
|
||||
return
|
||||
|
||||
profiler_mark(PROFILER_INPUT);
|
||||
|
||||
/* track the duration of the previous frame */
|
||||
|
Loading…
Reference in New Issue
Block a user