home *** CD-ROM | disk | FTP | other *** search
/ Toolkit for DOOM / DOOMTOOL.ISO / editors / wadgc2.zip / NEWFLATS.NFO < prev    next >
Text File  |  1994-07-31  |  1KB  |  27 lines

  1. The program NEWFLATS takes an IWAD file and a PWAD file containing
  2. an F_START...F_END section, which is really illegal for a PWAD,
  3. and merges the two. Replacement flats must be listed first, and
  4. new flats last. Replacement flats must be in the right section
  5. (F1 or F2), and must also be listed in the same order as in the
  6. IWAD file with no new flats in between. Both sections F1 and F2
  7. must be present in both files, but either section may be empty.
  8. Any entries other than flats in the PWAD are allowed, but ignored.
  9.  
  10. Usage: newflats iwadfile pwadfile newiwadfile
  11.  
  12.  
  13. The program works like this:
  14.  
  15. Copy all non-flat entries from the input IWAD to the output IWAD
  16. For each of the sections F1 and F2:
  17.   Init pointers to first flat of IWAD and first flat of PWAD
  18.   Repeat until the end of either section is reached:
  19.     If both have the same name:
  20.       pick the one from the PWAD and advance both pointers
  21.     Else:
  22.       pick the one from the IWAD and advance the PWAD pointer only
  23.   Write out any remaining flats in the IWAD
  24.   Write out any remaining flats in the PWAD
  25. Write the modified directory and exit
  26.   
  27.