diff --git a/src/d_main.cpp b/src/d_main.cpp index 256632cfc..e34b59459 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -1798,6 +1798,8 @@ static FString ParseGameInfo(std::vector &pwads, const char *fn, co bool isDir; const char *lastSlash = strrchr (fn, '/'); + if (lastSlash == NULL) + lastSlash = strrchr (fn, ':'); sc.OpenMem("GAMEINFO", data, size); while(sc.GetToken()) @@ -1822,8 +1824,7 @@ static FString ParseGameInfo(std::vector &pwads, const char *fn, co FString checkpath; if (lastSlash != NULL) { - checkpath = FString(fn, (lastSlash - fn) + 1); - checkpath += sc.String; + checkpath = FString(fn, lastSlash - fn) + '/' + sc.String; } else {