mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
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:
parent
1f4fe0303a
commit
7229f0b97f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user