From 430b1c95cfab3c61f7358f3c18f3da0f660f5711 Mon Sep 17 00:00:00 2001 From: michaelangel007 Date: Tue, 25 Apr 2023 22:24:01 -0700 Subject: [PATCH] Don't need status for GetLastReadTrackSector() --- source/Disk.cpp | 2 +- source/Disk.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Disk.cpp b/source/Disk.cpp index 538260ef..23ecf12c 100644 --- a/source/Disk.cpp +++ b/source/Disk.cpp @@ -101,7 +101,7 @@ bool Disk2InterfaceCard::GetEnhanceDisk(void) { return m_enhanceDisk; } void Disk2InterfaceCard::SetEnhanceDisk(bool bEnhanceDisk) { m_enhanceDisk = bEnhanceDisk; } // Returns true if Track, Sector is valid -bool Disk2InterfaceCard::GetLastReadTrackSector(const int drive, int& track, int& sector) +void Disk2InterfaceCard::GetLastReadTrackSector(const int drive, int& track, int& sector) { Disk_Status_e status = GetDriveLightStatus(drive); bool bValid = DISK_STATUS_OFF ? false : true; diff --git a/source/Disk.h b/source/Disk.h index 6877ef6d..c7e12633 100644 --- a/source/Disk.h +++ b/source/Disk.h @@ -168,7 +168,7 @@ public: bool IsConditionForFullSpeed(void); void NotifyInvalidImage(const int drive, LPCTSTR pszImageFilename, const ImageError_e Error); UINT GetCurrentFirmware(void) { return m_is13SectorFirmware ? 13 : 16; } - bool GetLastReadTrackSector(const int drive, int& track, int& sector); + void GetLastReadTrackSector(const int drive, int& track, int& sector); int GetCurrentDrive(void); int GetCurrentTrack(void); float GetCurrentPhase(void);