- Fixed -iwad parameter working only with VS on Windows.

This commit is contained in:
drfrag666 2018-05-12 11:32:53 +02:00 committed by Christoph Oelckers
parent 958b3c303a
commit 8afd331275
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ int FIWadManager::IdentifyVersion (TArray<FString> &wadfiles, const char *iwad,
FixPathSeperator(custwad); FixPathSeperator(custwad);
DefaultExtension(custwad, ext); DefaultExtension(custwad, ext);
bool isAbsolute = (custwad[0] == '/'); bool isAbsolute = (custwad[0] == '/');
#ifdef WINDOWS #ifdef _WIN32
isAbsolute |= (custwad.Len() >= 2 && custwad[1] == ':'); isAbsolute |= (custwad.Len() >= 2 && custwad[1] == ':');
#endif #endif
if (isAbsolute) if (isAbsolute)