Reintroduced discarding of custom IWAD duplicates

Detection of duplicated IWADs now works the same for embedded and custom IWADINFO definitions

https://forum.zdoom.org/viewtopic.php?t=58333
This commit is contained in:
alexey.lysiuk 2018-04-02 16:16:47 +03:00
parent 4de9597006
commit c70f9cf833

View file

@ -348,6 +348,16 @@ int FIWadManager::CheckIWADInfo(const char *fn)
FIWADInfo result;
ParseIWadInfo(resfile->Filename, (const char*)lmp->CacheLump(), lmp->LumpSize, &result);
delete resfile;
for (unsigned i = 0, count = mIWadInfos.Size(); i < count; ++i)
{
if (mIWadInfos[i].Name == result.Name)
{
return i;
}
}
mOrderNames.Push(result.Name);
return mIWadInfos.Push(result);
}
catch (CRecoverableError &err)