- 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

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. // Check if the given IWAD has an absolute path, in which case the search path will be ignored.
custwad = iwadparm; custwad = iwadparm;
FixPathSeperator(custwad); FixPathSeperator(custwad);
DefaultExtension(custwad, ".wad");
bool isAbsolute = (custwad[0] == '/'); bool isAbsolute = (custwad[0] == '/');
#ifdef WINDOWS #ifdef WINDOWS
isAbsolute |= (custwad.Len() >= 2 && custwad[1] == ':'); isAbsolute |= (custwad.Len() >= 2 && custwad[1] == ':');