Allow GAMEINFO LOAD to load directories

Addresses part of enhancement issue #2011
This commit is contained in:
John Stebbins 2023-02-23 07:32:58 -07:00 committed by Christoph Oelckers
parent 1f2809244d
commit c3d99fa699

View file

@ -1792,6 +1792,7 @@ static FString ParseGameInfo(TArray<FString> &pwads, const char *fn, const char
FScanner sc;
FString iwad;
int pos = 0;
bool isDir;
const char *lastSlash = strrchr (fn, '/');
@ -1825,7 +1826,7 @@ static FString ParseGameInfo(TArray<FString> &pwads, const char *fn, const char
{
checkpath = sc.String;
}
if (!FileExists(checkpath))
if (!DirEntryExists(checkpath, &isDir))
{
pos += D_AddFile(pwads, sc.String, true, pos, GameConfig);
}