Pocket Plane Group

Friends and Neighbors => Weimer Republic (WeiDU.org) => WeiDU => Topic started by: Argent77 on July 30, 2017, 02:53:03 PM

Title: Feature request: COPY_EXISTING_LARGE
Post by: Argent77 on July 30, 2017, 02:53:03 PM
Would it be possible to add a function COPY_EXISTING_LARGE (and possibly COPY_EXISTING_LARGE_REGEXP as well) to WeiDU that could deal with game resources in a similar manner as COPY_LARGE can deal with regular files? There are many game resources (such as TIS files or cinematics) that are currently inaccessible otherwise.

Description:

COPY_EXISTING_LARGE optNoBackup fromFile toFile ...

Behaves like COPY_EXISTING except that the fromFiles can be of arbitrary size, but on the other side of the coin you can’t apply patches to the copying.


COPY_EXISTING_LARGE_REGEXP optNoBackup optGlob fromFileRegExp toDirOrFile ...

Behaves like COPY_EXISTING_LARGE except that fromFileRegExp may contain regular expressions. Additionally, toDirOrFile may reference matched groups in fromFileRegexp with \1, \2, etc. If toDirOrFile is an existing directory or lacks a file extension, it will be treated as a directory and all matching files in the game BIFFs will be copied there. Otherwise, toDirOrFile will be treated as a file.
If GLOB is specified, matching files in override will also be copied. If a file appears in both the BIFFs and the override folder, it will only be copied once.