Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/core/FatEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ bool FatEntry::printable(unsigned char c)

bool FatEntry::isCorrect()
{
if (attributes && !(attributes&FAT_ATTRIBUTES_DIR) && !(attributes&FAT_ATTRIBUTES_FILE)) {
return false;
}

if (isDirectory() && cluster == 0 && getFilename()!="..") {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/FatEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using namespace std;
#define FAT_ATTRIBUTES_HIDE (1<<1)
#define FAT_ATTRIBUTES_DIR (1<<4)
#define FAT_ATTRIBUTES_LONGFILE (0xf)
#define FAT_ATTRIBUTES_FILE (0x20)
#define FAT_ATTRIBUTES_ARCHIVE (0x20)

// Prefix used for erased files
#define FAT_ERASED 0xe5
Expand Down