WeiDUorg / weidu

WeiDU is a program used to develop, distribute and install modifications for games based on the Infinity Engine.
http://www.weidu.org
GNU General Public License v2.0
90 stars 20 forks source link

APPEND_OUTER should evaluate variables in filename argument when IF_EXISTS is specified #162

Closed Argent77 closed 4 years ago

Argent77 commented 4 years ago

The following code snippet does not append text to the specified file %MOD_FOLDER%/test.txt.

<<<<<<<< .../inlined/test.txt
Original text
>>>>>>>>
COPY ~.../inlined/test.txt~ ~%MOD_FOLDER%/test.txt~
APPEND_OUTER ~%MOD_FOLDER%/test.txt~ ~Appended text~ IF_EXISTS

Produced log message:

Not appending to [%MOD_FOLDER%/test.txt] because the file does not exist
FredrikLindgren commented 4 years ago

Thanks. Fixed.