Merge pull request #36 from penfold42/hideDEL
Hide deleted files from BAM view
This commit is contained in:
commit
c961e2b5b0
1 changed files with 25 additions and 23 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue