WAD merging capability

Vanilla Doom does not support loading modified sprites in PWAD files. As a result, most TCs were traditionally distributed in the form of a WAD file which had to be merged with the main IWAD file. This was usually done through an included program like "deusf" or "nwt".

Chocolate Doom retains Vanilla Doom's behavior when loading PWADs using the "-file" command line option, and will not load sprites correctly. However, it includes new command line options which simulate the action of merging a WAD file into the IWAD. Different options are provided to simulate the behavior of different tools.

DeuSF-style
The majority of sprite and flat mods use the DeuSF program. Merging of this type is simulated using the -merge command line option.

As an example, to load the WAD needed for Aliens TC:

chocolate-doom -merge alitcsf.wad -file alitcsnd.wad alitcwad.wad -deh atcud19.deh

NWT-style
Some mods (such as Mordeth) use NWT. In this case, there are three command line options:


 * -af : Merges flats from the given PWAD. Equivalent to nwt -af .
 * -as : Merges sprites from the given PWAD. Equivalent to nwt -as .
 * -aa : Merges all flats and sprites from the given PWAD. Equivalent to nwt -af -as .