CubicMC / cubic-server

A fast and extensible C++ Minecraft server implementation
https://cubicmc.org
GNU General Public License v3.0
53 stars 6 forks source link

Embed JSON files inside the executable binary. #197

Closed GamePlayer-8 closed 2 months ago

GamePlayer-8 commented 1 year ago

Heyo,

There's an issue with the binary, since it requires blocks-x.xx.x.json & registries-x.xx.x.json, where x.xx.x is the actual Minecraft version.

How about embeding those config files inside the binary so the user / sysadmin musn't move them into the workdir too?

Eventually look for those files in /usr/share/cubic-server if the above solution is impossible.

emneo-dev commented 1 year ago

Hello, thanks for the issue.

We are currently looking at how to achieve that properly since there are a lot of different ways to embed assets in a binary. It looks like we would be going towards CMake trickeries but honestly this does not sound good so we are still looking.