Fixed detection of .ipk7 custom IWADs

This commit is contained in:
alexey.lysiuk 2018-04-02 15:32:00 +03:00
parent ac7e5def32
commit 4de9597006
1 changed files with 2 additions and 2 deletions

View File

@ -427,7 +427,7 @@ void FIWadManager::AddIWADCandidates(const char *dir)
if (p != nullptr) if (p != nullptr)
{ {
// special IWAD extension. // special IWAD extension.
if (!stricmp(p, ".iwad") || !stricmp(p, ".ipk3") || !stricmp(p, "ipk7")) if (!stricmp(p, ".iwad") || !stricmp(p, ".ipk3") || !stricmp(p, ".ipk7"))
{ {
mFoundWads.Push(FFoundWadInfo{ slasheddir + FindName, "", -1 }); mFoundWads.Push(FFoundWadInfo{ slasheddir + FindName, "", -1 });
} }
@ -461,7 +461,7 @@ void FIWadManager::ValidateIWADs()
{ {
int index; int index;
auto x = strrchr(p.mFullPath, '.'); auto x = strrchr(p.mFullPath, '.');
if (x != nullptr && (!stricmp(x, ".iwad") || !stricmp(x, ".ipk3") || !stricmp(x, "ipk7"))) if (x != nullptr && (!stricmp(x, ".iwad") || !stricmp(x, ".ipk3") || !stricmp(x, ".ipk7")))
{ {
index = CheckIWADInfo(p.mFullPath); index = CheckIWADInfo(p.mFullPath);
} }