DEHACKED lumps from IWAD now have precedence over embedded lumps and separate files
See https://forum.drdteam.org/viewtopic.php?t=7588 Processing order is now the same as in Chocolate Doom prBoom+ loads separate files after all WAD lumps though This makes sense but would change loading sequence existed in ZDoom for years
This commit is contained in:
parent
f12c42d8d1
commit
dd30d2a045
3 changed files with 26 additions and 4 deletions
|
|
@ -2422,16 +2422,29 @@ static bool isDehFile(int lumpnum)
|
|||
&& (0 == stricmp(extension, ".deh") || 0 == stricmp(extension, ".bex"));
|
||||
}
|
||||
|
||||
int D_LoadDehLumps()
|
||||
int D_LoadDehLumps(DehLumpSource source)
|
||||
{
|
||||
int lastlump = 0, lumpnum, count = 0;
|
||||
|
||||
while ((lumpnum = Wads.FindLump("DEHACKED", &lastlump)) >= 0)
|
||||
{
|
||||
const int filenum = Wads.GetLumpFile(lumpnum);
|
||||
|
||||
if (FromIWAD == source && filenum > FWadCollection::IWAD_FILENUM)
|
||||
{
|
||||
// No more DEHACKED lumps in IWAD
|
||||
break;
|
||||
}
|
||||
else if (FromPWADs == source && filenum <= FWadCollection::IWAD_FILENUM)
|
||||
{
|
||||
// Skip DEHACKED lumps from IWAD
|
||||
continue;
|
||||
}
|
||||
|
||||
count += D_LoadDehLump(lumpnum);
|
||||
}
|
||||
|
||||
if (0 == PatchSize && dehload > 0)
|
||||
if (FromPWADs == source && 0 == PatchSize && dehload > 0)
|
||||
{
|
||||
// No DEH/BEX patch is loaded yet, try to find lump(s) with specific extensions
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue