From cceef25c24737ef3bf1226ef439e8619c886041d Mon Sep 17 00:00:00 2001 From: sorgelig Date: Tue, 31 Mar 2020 05:24:04 +0800 Subject: [PATCH] file_io: display extension if wildcard is used. --- file_io.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/file_io.cpp b/file_io.cpp index 043b078..b8b8d6b 100644 --- a/file_io.cpp +++ b/file_io.cpp @@ -1209,6 +1209,7 @@ static void get_display_name(direntext_t *dext, const char *ext, int options) //do not remove ext if core supplies more than 1 extension and it's not list of cores if (!(options & SCANO_CORES) && strlen(ext) > 3) return; + if (strchr(ext, '*') || strchr(ext, '?')) return; /* find the extension on the end of the name*/ char *fext = strrchr(dext->altname, '.');