-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,9 +680,12 @@ 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));
WDVD_Init(); if(!nodisc || !m_new_dml)
WDVD_StopMotor(); {
WDVD_Close(); WDVD_Init();
WDVD_StopMotor();
WDVD_Close();
}
} }
memcpy((char *)0x80000000, id, 6); memcpy((char *)0x80000000, id, 6);