Doom-Utils / deutex

WAD composer for Doom, Heretic, Hexen, and Strife
Other
61 stars 17 forks source link

Updated entry parser to support a "/raw" flag. #62

Closed andwj closed 5 years ago

andwj commented 6 years ago

This flag generally must appear after the entry name, but may also appear after the "= filename" syntax (for consistency with XY offsets which can appear in either place).

The beginning slash is part of the flag, and the parser could easily be extended to recognise new flags, which may be useful in the future.

Main use for this "/raw" flag is with the [TX_START] section, where it causes images to be inserted directly into the wad (the flag replaces the previously hacky method of using the XY offsets to mark such images). This "/raw" flag may have more uses in the future.

I also renamed TXTentryParse --> TXTparseEntry, consistent with the "verb + Noun" format of most other function names. Plus I improved the way the "= filename" syntax was parsed.

P.S. I tested these changes on a TX_START test wad, and also on FreeDoom.

andwj commented 5 years ago

I now think the keyword "/raw" was not a good choice, as it could be confused with the "raw pixel" format used for certain fullscreen images in Heretic and Hexen (TITLE, CREDIT, AUTOPAGE, etc....)

Hence I will remove this PR from consideration.