igroglaz / srvmgr

https://rom2.ru
8 stars 5 forks source link

Add VS Code + CMake build #147

Closed ikacnep closed 3 weeks ago

ikacnep commented 3 weeks ago

Also cleaning up a bit to make it compile:

  1. Remove entries in arena.txt and srvlist.txt that start with rem. rem doesn't work there, it just produces an error "file rem doesn't exist" and fails post-build rule.
  2. Remove failing srv_quest_no_mail.xck.
  3. Remove round() function which clashes with the stdlib function.
  4. Add missing include <string> to zxmgr.h so that it can be compiled independently from other files.
  5. Add extern "C" so that linker can find the function. No idea.

Tested locally on Win11: compiles, executes post-build successfully. Doesn't run on my host system, but the built a2serv.exe + srvmgr.dll runs in a virtual machine.