Merge pull request #36 from penfold42/hideDEL

Hide deleted files from BAM view
This commit is contained in:
Stephen White 2018-07-02 18:24:44 +10:00 committed by GitHub
commit c961e2b5b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1023,6 +1023,7 @@ void FileBrowser::DisplayDiskInfo(DiskImage* diskImage, const char* filenameForI
u8 fileType = buffer[DIR_ENTRY_OFFSET_TYPE + entryOffset];
u16 blocks = (buffer[DIR_ENTRY_OFFSET_BLOCKS + entryOffset + 1] << 8) | buffer[DIR_ENTRY_OFFSET_BLOCKS + entryOffset];
if (fileType != 0) { // hide scratched files
x = 0;
for (charIndex = 0; charIndex < DIR_ENTRY_NAME_LENGTH; ++charIndex)
{
@ -1048,6 +1049,7 @@ void FileBrowser::DisplayDiskInfo(DiskImage* diskImage, const char* filenameForI
screenMain->PrintText(true, x, y, bufferOut, textColour, bgColour);
y += fontHeight;
}
}
entryOffset += 32;
}
}