Don't display dates for non-rbf files.

This commit is contained in:
sorgelig
2019-12-23 01:17:37 +08:00
parent 2e12b079d5
commit cf10487497

View File

@@ -4798,6 +4798,7 @@ void PrintDirectory(void)
k = flist_iFirstEntry() + i;
len = strlen(flist_DirItem(k)->altname); // get name length
int rbf = (len > 4 && !strcasecmp(flist_DirItem(k)->altname + len - 4, ".rbf"));
if (!(flist_DirItem(k)->de.d_type == DT_DIR)) // if a file
{
@@ -4837,7 +4838,7 @@ void PrintDirectory(void)
strcpy(&s[22], " <DIR>");
}
}
else if (!cfg.rbf_hide_datecode && (fs_Options & SCANO_CORES))
else if (!cfg.rbf_hide_datecode && (fs_Options & SCANO_CORES) && rbf)
{
if (p)
{