Fixed IWAD detection for case-sensitive file systems

https://forum.zdoom.org/viewtopic.php?t=57770
This commit is contained in:
alexey.lysiuk 2017-09-05 10:33:07 +03:00
parent dd0bc02eec
commit 85ffeebb96

View file

@ -429,7 +429,7 @@ void FIWadManager::AddIWADCandidates(const char *dir)
{
if (!stricmp(name, FindName))
{
mFoundWads.Push(FFoundWadInfo{ slasheddir + name, "", -1 });
mFoundWads.Push(FFoundWadInfo{ slasheddir + FindName, "", -1 });
}
}
}
@ -736,4 +736,4 @@ const FIWADInfo *FIWadManager::FindIWAD(TArray<FString> &wadfiles, const char *i
}
I_SetIWADInfo();
return iwad_info;
}
}