Hide deleted files from BAM view
This commit is contained in:
parent
8dc1c7cb14
commit
791d1ea0a8
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];
|
u8 fileType = buffer[DIR_ENTRY_OFFSET_TYPE + entryOffset];
|
||||||
u16 blocks = (buffer[DIR_ENTRY_OFFSET_BLOCKS + entryOffset + 1] << 8) | buffer[DIR_ENTRY_OFFSET_BLOCKS + 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;
|
x = 0;
|
||||||
for (charIndex = 0; charIndex < DIR_ENTRY_NAME_LENGTH; ++charIndex)
|
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);
|
screenMain->PrintText(true, x, y, bufferOut, textColour, bgColour);
|
||||||
y += fontHeight;
|
y += fontHeight;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
entryOffset += 32;
|
entryOffset += 32;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue