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:
Zsolt Vasvari 2008-03-16 04:31:40 +00:00
parent c39f072404
commit c64886cc69

View File

@ -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 */