Add ability for FormatTrack to use cached Disk2InterfaceCard

This commit is contained in:
michaelangel007 2023-04-30 13:17:58 -07:00
parent 6a3cd8310d
commit 3066617f34
2 changed files with 7 additions and 0 deletions

View File

@ -87,6 +87,8 @@ Disk2InterfaceCard::Disk2InterfaceCard(UINT slot) :
m_uWriteLastCycle = 0;
m_uSyncFFCount = 0;
#endif
m_formatTrack.SetCard(this);
}
Disk2InterfaceCard::~Disk2InterfaceCard(void)

View File

@ -25,6 +25,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "DiskLog.h"
class Disk2InterfaceCard;
class FormatTrack // Monitor for formatting of track
{
public:
@ -46,6 +48,7 @@ public:
void SaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
void LoadSnapshot(class YamlLoadHelper& yamlLoadHelper);
BYTE* GetLastReadVolumeTrackSectorChecksum() { return m_VolTrkSecChk; }
void SetCard(Disk2InterfaceCard* pCard) { m_pCard = pCard; }
private:
void UpdateOnWriteLatch(UINT uSpinNibbleCount, const class FloppyDisk* const pFloppy);
@ -65,6 +68,8 @@ private:
BYTE m_VolTrkSecChk4and4[8];
UINT m_4and4idx;
Disk2InterfaceCard *m_pCard;
std::string m_strReadD5AAxxDetected;
bool m_bSuppressReadD5AAxxDetected;