- allow forks to set OPTIONALWAD to (null) to disable searching for it.

This commit is contained in:
Rachael Alexanderson 2024-12-05 04:09:51 -05:00
parent 3e10e3f551
commit 1d04bd36d0
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0
2 changed files with 2 additions and 1 deletions

View file

@ -824,7 +824,7 @@ int FIWadManager::IdentifyVersion (std::vector<std::string>&wadfiles, const char
// [SP] Load non-free assets if available. This must be done before the IWAD.
int iwadnum = 1;
if (D_AddFile(wadfiles, optional_wad, true, -1, GameConfig))
if (optional_wad && D_AddFile(wadfiles, optional_wad, true, -1, GameConfig))
{
iwadnum++;
}

View file

@ -93,6 +93,7 @@ const char *GetVersionString();
// This is so that derivates can use the same savegame versions without worrying about engine compatibility
#define GAMESIG "GZDOOM"
#define BASEWAD "gzdoom.pk3"
// Set OPTIONALWAD to "" (null) to disable searching for it
#define OPTIONALWAD "game_support.pk3"
#define GZDOOM 1
#define VR3D_ENABLED