calref / cboe

Classic Blades of Exile
http://spiderwebforums.ipbhost.com/index.php?/forum/12-blades-of-exile/
Other
167 stars 41 forks source link

vcxproj Copy scenarios and data to the right output dir #333

Closed NQNStudios closed 1 year ago

NQNStudios commented 1 year ago

Fix #332

Weirdly, things seem to run fine WITHOUT copying the data/ subfolders into the output directory. Does the resource manager embed them in the binary or something? Anyway, I made it copy them over anyway just in case.

CelticMinstrel commented 1 year ago

Weirdly, things seem to run fine WITHOUT copying the data/ subfolders into the output directory.

It presumably depends on how you're launching the game. In particular, when launching from Visual Studio, it likely uses something like the repository root (or possibly the actual directory it used to copy to) as the working directory.

I hope with this it'll still launch when the files don't exist in the directory it used to copy to? If that's the case I can merge as soon as CI passes.

Does the resource manager embed them in the binary or something?

It does not. The only things embedded in the binary are the icon and the menu definitions.

NQNStudios commented 1 year ago

Just checked, and it does work, both launched from VSCode and by launching the generated exe directly.