0x0ade / DuckGame-Linux

Collection of patches to get Duck Game running on Linux using FNA, not Wine. Scroll down for instructions.
MIT License
50 stars 3 forks source link

Moving original files to orig breaks mod.sh, should be copied #2

Open nsrosenqvist opened 7 years ago

nsrosenqvist commented 7 years ago

In the beginning of mod.sh the original Content folder gets moved to orig as well as DuckGame.exe. This will cause the script to fail because later when the exe is being patched it first complains that Content can't be found and then later we end up with an empty DuckGame.exe (0 bytes). Copying the folder rather than moving it should fix this.

0x0ade commented 7 years ago

This is weird because moving should be enough. The first step XnaToFna does is copy everything from the orig backup directory back into the game directory.

https://github.com/0x0ade/XnaToFna/blob/1607442eaf2e5cd5ffba7b5cbc02fa317d27faca/src/XnaToFnaUtil.cs#L124

For now, I'll update mod.sh to copy to the orig folder instead. I'll check the issue in XnaToFna as soon as I get back home.

nsrosenqvist commented 7 years ago

XnaToFna errors when the directory Content can't be found (since it's now in orig). Don't know enough about it to tell if a step happens in the wrong order or something