only build the identify buffer on the first reset, so patches made by the driver aren't lost if the device is reset. (nw)

This commit is contained in:
smf- 2013-06-20 12:38:41 +00:00
parent 1f4fe0303a
commit 7229f0b97f

View File

@ -1381,7 +1381,7 @@ void ide_hdd_device::device_reset()
m_handle = m_image->get_chd_file();
m_disk = m_image->get_hard_disk_file();
if (m_disk != NULL)
if (m_disk != NULL && !m_can_identify_device)
{
const hard_disk_info *hdinfo = hard_disk_get_info(m_disk);
if (hdinfo->sectorbytes == IDE_DISK_SECTOR_SIZE)