From 054756a4937864b76f8e4d6cb5f014b8f554505b Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sat, 20 Mar 2021 03:42:22 +0800 Subject: [PATCH] menu: fix no files message if previously loaded file is missing. --- menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menu.cpp b/menu.cpp index 5804405..164d0a1 100644 --- a/menu.cpp +++ b/menu.cpp @@ -376,7 +376,7 @@ static void SelectFile(const char* path, const char* pFileExt, unsigned char Opt if (home_dir) home_dir++; else home_dir = home; - if (strncasecmp(home, selPath, strlen(home)) || !strcasecmp(home, selPath)) + if (strncasecmp(home, selPath, strlen(home)) || !strcasecmp(home, selPath) || (!FileExists(selPath) && !PathIsDir(selPath))) { Options &= ~SCANO_NOENTER; strcpy(selPath, home);