From c3d99fa699ddeb88657fb5b0ca810dd10c26750b Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 23 Feb 2023 07:32:58 -0700 Subject: [PATCH] Allow GAMEINFO LOAD to load directories Addresses part of enhancement issue #2011 --- src/d_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index ce49a75cb..d3f74b1db 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -1792,6 +1792,7 @@ static FString ParseGameInfo(TArray &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 &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); }