-only do something with the disc drive on DML game launch

if the no disc patch is disabled
This commit is contained in:
fix94.1 2012-03-17 14:47:08 +00:00
parent 29ae0f2718
commit b4557e9f45

View File

@ -680,10 +680,13 @@ void CMenu::_launchGC(dir_discHdr *hdr, bool DML)
m_gcfg1.setInt("PLAYCOUNT", id, m_gcfg1.getInt("PLAYCOUNT", id, 0) + 1); m_gcfg1.setInt("PLAYCOUNT", id, m_gcfg1.getInt("PLAYCOUNT", id, 0) + 1);
m_gcfg1.setUInt("LASTPLAYED", id, time(NULL)); m_gcfg1.setUInt("LASTPLAYED", id, time(NULL));
if(!nodisc || !m_new_dml)
{
WDVD_Init(); WDVD_Init();
WDVD_StopMotor(); WDVD_StopMotor();
WDVD_Close(); WDVD_Close();
} }
}
memcpy((char *)0x80000000, id, 6); memcpy((char *)0x80000000, id, 6);
if(((id[3] == 'P') && (DMLvideoMode == 0)) || (DMLvideoMode == 1)) if(((id[3] == 'P') && (DMLvideoMode == 0)) || (DMLvideoMode == 1))