- don't show iwad box if priority iwad has been located for the currently loaded mods gameinfo

This commit is contained in:
Rachael Alexanderson 2024-10-12 01:24:57 -04:00
parent 4cb60265be
commit e562111a51
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -59,6 +59,8 @@ EXTERN_CVAR(Bool, autoloadbrightmaps)
EXTERN_CVAR(Bool, autoloadwidescreen)
EXTERN_CVAR(String, language)
bool foundprio = false; // global to prevent iwad box from appearing
//==========================================================================
//
// Parses IWAD definitions
@ -695,6 +697,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
picks.Clear();
picks.Push(found);
pickedprio = mIWadInfos[found.mInfoIndex].prio;
foundprio = true;
}
}
}
@ -750,7 +753,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
int pick = 0;
// Present the IWAD selection box.
bool alwaysshow = (queryiwad && !Args->CheckParm("-iwad"));
bool alwaysshow = (queryiwad && !Args->CheckParm("-iwad") && !foundprio);
if (alwaysshow || picks.Size() > 1)
{