Re: game-data-packager: stripping first directory component
On Mon, 16 Apr 2018 at 10:30:49 +0200, Johannes Schauer wrote:
> I wanted to add support for the Heroes of Might and Magic III MacOS demo to
> data/heroes3.yaml of game-data-packager.
> Unfortunately, the archive contains the content in a subdirectory called
> "Heroes III Demo" like:
> Heroes III Demo/data/h3ab_spr.lod
> Heroes III Demo/data/h3bitmap.lod
> Heroes III Demo/data/h3sprite.lod
> Heroes III Demo/data/heroes3.snd
> Heroes III Demo/data/video.vid
If you tell game-data-packager that the archive contains
"data/h3ab_spr.lod" etc. (and change all other occurrences of these
filenames accordingly), it should do the right thing. It does a
case-insensitive suffix match, rather than comparing for equality.