bring back extras.wad autoload, support for chex3v.wad IWAD (#2086)

* add "-noextras"
This commit is contained in:
Roman Fomin 2024-12-12 14:12:16 +07:00 committed by GitHub
parent 78491e0340
commit 29e1e9e1b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 0 deletions

View File

@ -43,6 +43,7 @@ static const iwad_t iwads[] = {
{"freedoom1.wad", doom, retail, "Freedoom: Phase 1" }, {"freedoom1.wad", doom, retail, "Freedoom: Phase 1" },
{"freedm.wad", doom2, commercial, "FreeDM" }, {"freedm.wad", doom2, commercial, "FreeDM" },
{"chex.wad", pack_chex, retail, "Chex Quest" }, {"chex.wad", pack_chex, retail, "Chex Quest" },
{"chex3v.wad", pack_chex, retail, "Chex Quest 3: Vanilla Edition" },
{"hacx.wad", pack_hacx, commercial, "HACX: Twitch n' Kill" }, {"hacx.wad", pack_hacx, commercial, "HACX: Twitch n' Kill" },
{"rekkrsa.wad", pack_rekkr, retail, "REKKR" }, {"rekkrsa.wad", pack_rekkr, retail, "REKKR" },
{"rekkrsl.wad", pack_rekkr, retail, "REKKR: Sunken Land" }, {"rekkrsl.wad", pack_rekkr, retail, "REKKR: Sunken Land" },

View File

@ -1873,6 +1873,21 @@ void D_DoomMain(void)
IdentifyVersion(); IdentifyVersion();
//!
// @category mod
//
// Disable auto-loading of extars.wad file.
//
if (gamemission < pack_chex && !M_ParmExists("-noextras"))
{
char *path = D_FindWADByName("extras.wad");
if (path)
{
D_AddFile(path);
}
}
// [FG] emulate a specific version of Doom // [FG] emulate a specific version of Doom
InitGameVersion(); InitGameVersion();

View File

@ -44,6 +44,7 @@ static const char *params[] = {
"-bsp", "-bsp",
"-force_old_zdoom_nodes", "-force_old_zdoom_nodes",
"-noautoload", "-noautoload",
"-noextras",
"-nocheats", "-nocheats",
"-nodeh", "-nodeh",
"-nomapinfo", "-nomapinfo",