thdat skips files under Wine
I tried installing EoSD Boss Rush patch but both the version bundled with the patch (that uses x6 instead of -x 6) and the latest version of thdat have the following problem.
When listing files in an archive, they all get listed properly. But when extracting, only few files are extracted. For TH06:
$ ls -r *
tl:
ver0102.dat select05.anm result02.png music02.anm music00.anm
title00.jpg select00.jpg result00.png music01.anm
slpl01a.png result03_a.png replay00_a.png music00_a.png
st:
ver0102.dat stg6bg.png stg1bg.anm face12c.anm face05a_a.png
stg7enm2.anm stg5enm2.anm msg7.dat face12a_a.png eff07.png
stg7bg.png stg4enm.png face12c_a.png face10a.anm eff07.anm
md:
ver0102.dat th06_17.mid th06_14.pos th06_10.mid th06_05.pos musiccmt.txt
th06_17.pos th06_16.pos th06_12.pos th06_09.pos th06_01.mid
in:
ver0102.dat spellcards.eng kira01.wav enep01.wav asciis.png ascii.png
th06logo.jpg ok00.wav graze.wav capture.anm asciis.anm
ed:
ver0102.dat staff03_a.png staff02.png end13.jpg end02.jpg
staff03.png staff03.anm staff01.png end08.jpg end00b.end
cm:
ver0102.dat loading.anm face01b_a.png face00c.png etama3.anm demo00.rpy
loading.png face01c.png face01a_a.png face00a.png eff00.png
Wine: tkg-3.21-x86_64 (Lutris build) 32bit prefix tried both with esync patch enabled and disabled
Solution is probably to use the Linux-native binary (BTW AUR package doesn't work - https://aur.archlinux.org/packages/thtk-git/#news ), I'll try it soon. But maybe you have an idea why this strange behavior happens with Wine.
This has to do with our use of OpenMP, Wine doesn't like it for some reason. IIRC, you can set vcomp140.dll to native to solve the issue. Or, well, use Linux binaries.