mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
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:
parent
4de9597006
commit
c70f9cf833
1 changed files with 10 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue