Doom-Utils / deutex

WAD composer for Doom, Heretic, Hexen, and Strife
Other
63 stars 18 forks source link

Dynamic filename for directives file #35

Open Voros2 opened 7 years ago

Voros2 commented 7 years ago

Basically, instead of setting WADINFO as the default filename, let Deutex give it the name as the WAD it's extracting/composing from.

Changing line 590 MakeFileName(WadInf, DataDir, "", "", "WADINFO", "TXT");

of deutex.c into

MakeFileName(WadInf, DataDir, "", "", MainWAD, "TXT");

might be enough for extracting a WAD named "maps.wad" and creating a directives file called "maps.txt", unless specified by the user.