From cf10487497d0cd5d7ed86c77a80ff7f27444ab4f Mon Sep 17 00:00:00 2001 From: sorgelig Date: Mon, 23 Dec 2019 01:17:37 +0800 Subject: [PATCH] Don't display dates for non-rbf files. --- menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu.cpp b/menu.cpp index 48054e1..b1daaee 100644 --- a/menu.cpp +++ b/menu.cpp @@ -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], " "); } } - else if (!cfg.rbf_hide_datecode && (fs_Options & SCANO_CORES)) + else if (!cfg.rbf_hide_datecode && (fs_Options & SCANO_CORES) && rbf) { if (p) {