HDD error wasn't cleared on a reset or power-cycle - fixes #515

This commit is contained in:
tomcw
2017-12-03 21:05:05 +00:00
parent a551af020d
commit 5505ff696f
6 changed files with 20 additions and 6 deletions
+9
View File
@@ -289,6 +289,15 @@ static LPCTSTR HD_DiskGetBaseName(const int iDrive) // Not used
return g_HardDisk[iDrive].imagename;
}
//-------------------------------------
void HD_Reset(void)
{
g_HardDisk[HARDDISK_1].hd_error = 0;
g_HardDisk[HARDDISK_2].hd_error = 0;
}
//-------------------------------------
void HD_Load_Rom(const LPBYTE pCxRomPeripheral, const UINT uSlot)