home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Toolkit for DOOM
/
DOOMTOOL.ISO
/
editors
/
wadgc2.zip
/
NEWFLATS.NFO
< prev
next >
Wrap
Text File
|
1994-07-31
|
1KB
|
27 lines
The program NEWFLATS takes an IWAD file and a PWAD file containing
an F_START...F_END section, which is really illegal for a PWAD,
and merges the two. Replacement flats must be listed first, and
new flats last. Replacement flats must be in the right section
(F1 or F2), and must also be listed in the same order as in the
IWAD file with no new flats in between. Both sections F1 and F2
must be present in both files, but either section may be empty.
Any entries other than flats in the PWAD are allowed, but ignored.
Usage: newflats iwadfile pwadfile newiwadfile
The program works like this:
Copy all non-flat entries from the input IWAD to the output IWAD
For each of the sections F1 and F2:
Init pointers to first flat of IWAD and first flat of PWAD
Repeat until the end of either section is reached:
If both have the same name:
pick the one from the PWAD and advance both pointers
Else:
pick the one from the IWAD and advance the PWAD pointer only
Write out any remaining flats in the IWAD
Write out any remaining flats in the PWAD
Write the modified directory and exit