- reinstate '.wad' default extension for -iwad parameter.

This commit is contained in:
Christoph Oelckers 2017-08-20 10:50:19 +02:00
parent 2e845584c3
commit cc3e36cfdc
1 changed files with 1 additions and 0 deletions

View File

@ -508,6 +508,7 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
// Check if the given IWAD has an absolute path, in which case the search path will be ignored.
custwad = iwadparm;
FixPathSeperator(custwad);
DefaultExtension(custwad, ".wad");
bool isAbsolute = (custwad[0] == '/');
#ifdef WINDOWS
isAbsolute |= (custwad.Len() >= 2 && custwad[1] == ':');