menu: fix no files message if previously loaded file is missing.
This commit is contained in:
2
menu.cpp
2
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);
|
||||
|
||||
Reference in New Issue
Block a user