Skip to content

Commit

Permalink
- always show iwad picker, offer option for forks to hide picker by d…
Browse files Browse the repository at this point in the history
…efault. this commit was intentionally done in a way to cause merge conflicts so as to force fork maintainers to pay attention to the new option in version.h
  • Loading branch information
madame-rachelle committed May 3, 2024
1 parent 4bf2fb0 commit bcad040
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/common/engine/i_interface.cpp
Expand Up @@ -4,6 +4,7 @@
#include "startupinfo.h"
#include "c_cvars.h"
#include "gstrings.h"
#include "version.h"

static_assert(sizeof(void*) == 8, "32 builds are not supported");

Expand All @@ -23,7 +24,7 @@ bool pauseext;

FStartupInfo GameStartupInfo;

CVAR(Bool, queryiwad, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
CVAR(Bool, queryiwad, QUERYIWADDEFAULT, CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
CVAR(String, defaultiwad, "", CVAR_ARCHIVE | CVAR_GLOBALCONFIG);
CVAR(Bool, vid_fps, false, 0)

Expand Down
4 changes: 2 additions & 2 deletions src/d_iwad.cpp
Expand Up @@ -728,7 +728,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
int pick = 0;

// We got more than one so present the IWAD selection box.
if (picks.Size() > 1)
if (picks.Size() > 0)
{
// Locate the user's prefered IWAD, if it was found.
if (defaultiwad[0] != '\0')
Expand All @@ -743,7 +743,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
}
}
}
if (picks.Size() > 1)
if (picks.Size() > 0)
{
if (!havepicked)
{
Expand Down
3 changes: 3 additions & 0 deletions src/version.h
Expand Up @@ -101,8 +101,11 @@ const char *GetVersionString();
#define GAMENAME "GZDoom"
#define WGAMENAME L"GZDoom"
#define GAMENAMELOWERCASE "gzdoom"
#define QUERYIWADDEFAULT true
#define FORUM_URL "http://forum.zdoom.org/"
#define BUGS_FORUM_URL "http://forum.zdoom.org/viewforum.php?f=2"
// For QUERYIWADDEFAULT: Set to 'true' to always show dialog box on startup by default, 'false' to disable.
// Should set to 'false' for standalone games, and set to 'true' for regular source port forks that are meant to run any game.

#if defined(__APPLE__) || defined(_WIN32)
#define GAME_DIR GAMENAME
Expand Down

0 comments on commit bcad040

Please sign in to comment.