Previous 199869 Revisions Next

r20702 Sunday 3rd February, 2013 at 17:09:57 UTC by R. Belmont
(MESS) Properly close the old image when swapping CHD-CDs [Steve Leung]
[src/emu/imagedev]chd_cd.c

trunk/src/emu/imagedev/chd_cd.c
r20701r20702
101101{
102102   if (m_cdrom_handle)
103103      cdrom_close(m_cdrom_handle);
104   if( m_self_chd.opened() )
105      m_self_chd.close();
104106}
105107
106108bool cdrom_image_device::call_load()
r20701r20702
148150   assert(m_cdrom_handle);
149151   cdrom_close(m_cdrom_handle);
150152   m_cdrom_handle = NULL;
153   if( m_self_chd.opened() )
154      m_self_chd.close();
151155}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team