cubic-server icon indicating copy to clipboard operation
cubic-server copied to clipboard

Embed JSON files inside the executable binary.

Open GamePlayer-8 opened this issue 2 years ago • 1 comments

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.

GamePlayer-8 avatar Aug 22 '23 11:08 GamePlayer-8

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.

emneo-dev avatar Aug 27 '23 00:08 emneo-dev