mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-26 21:30:36 +00:00
Fixed #387: Added support for up to 40-track .nib images
This commit is contained in:
parent
3db755c2b4
commit
82302c19ce
@ -714,10 +714,10 @@ public:
|
||||
|
||||
virtual eDetectResult Detect(const LPBYTE pImage, const DWORD dwImageSize, const TCHAR* pszExt)
|
||||
{
|
||||
if (dwImageSize != NIB1_TRACK_SIZE*TRACKS_STANDARD)
|
||||
if (dwImageSize < NIB1_TRACK_SIZE*TRACKS_STANDARD || dwImageSize % NIB1_TRACK_SIZE != 0 || dwImageSize > NIB1_TRACK_SIZE*TRACKS_MAX)
|
||||
return eMismatch;
|
||||
|
||||
m_uNumTracksInImage = TRACKS_STANDARD;
|
||||
m_uNumTracksInImage = dwImageSize / NIB1_TRACK_SIZE;
|
||||
return eMatch;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user