mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 13:50:48 +00:00
- don't show iwad box if priority iwad has been located for the currently loaded mods gameinfo
This commit is contained in:
parent
4cb60265be
commit
e562111a51
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue