mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-20 16:41:02 +00:00
Allow GAMEINFO LOAD to load directories
Addresses part of enhancement issue #2011
This commit is contained in:
parent
1f2809244d
commit
c3d99fa699
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue