menu: fix no files message if previously loaded file is missing.

This commit is contained in:
sorgelig
2021-03-20 03:42:22 +08:00
parent 383249f201
commit 054756a493

View File

@@ -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);