Skip to content

Commit

Permalink
- allow forks to set OPTIONALWAD to (null) to disable searching for it.
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Dec 5, 2024
1 parent 23a021d commit fb660fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/d_iwad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
Expand Down
1 change: 1 addition & 0 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb660fa

Please sign in to comment.