calref / cboe

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

Windows Visual Studio 2017 project: Scenarios, Base, and data copied to wrong directory #332

Closed NQNStudios closed 1 year ago

NQNStudios commented 1 year ago

https://github.com/calref/cboe/blob/8f6450417bcce6fec6f4e09448cf0fd93385ca95/proj/vs2017/Common/Common.vcxproj#L538

This section of Common.vcxproj is meant to copy resource files into Blades of Exile Scenarios/, Blades of Exile Base/, and data/ in the output directory. But actually the build ends up with a directory structure like this:

cboe/
  Debug/
    Blades of Exile Scenarios/
    Blades of Exile Base/
    data/
 x64/
    Debug/
      <all the binaries>

Consequently the game can't load the 3 built-in scenarios.

It's because $(SolutionDir)$(Configuration) is used as a macro to find the output dir. When I change those to $(SolutionDir)$(PlatformShortName)\$(Configuration) it fixes it. PR incoming.