MESS: stop psx crashing when reloading a state when cd access was in progress [smf]

This commit is contained in:
smf- 2013-03-27 23:50:16 +00:00
parent 9237e15a0e
commit c861adb9bb

View File

@ -1408,6 +1408,12 @@ void psxcd_device::stop_read()
//
void psxcd_device::device_timer(emu_timer &timer, device_timer_id tid, int param, void *ptr)
{
if (!m_timerinuse[tid])
{
printf("cdrom:: timer fired for free event\n");
return;
}
m_timerinuse[tid] = false;
switch (param)
{