mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- reinstate '.wad' default extension for -iwad parameter.
This commit is contained in:
parent
2e845584c3
commit
cc3e36cfdc
1 changed files with 1 additions and 0 deletions
|
@ -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] == ':');
|
||||||
|
|
Loading…
Reference in a new issue