Hide deleted files from BAM view

This commit is contained in:
penfold42 2018-07-01 20:46:07 +10:00
parent 8dc1c7cb14
commit 791d1ea0a8

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;
}
}