cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
868 stars 115 forks source link

Install data to CDOGS_DATA_DIR #835

Open reinerh opened 4 months ago

reinerh commented 4 months ago

utils.c is searching data files in CDOGS_DATA_DIR, so make sure that the files are also installed there (similar to CDOGS_DOC_DIR).

cxong commented 4 months ago

It looks like this value can be different to CDOGS_DATA_DIR due to various packaging scenarios, but I don't remember how this works. In any case we would need to test the packaging in multiple platforms to make sure this works, so would it be easier to just set DATA_INSTALL_DIR to the right value?

cxong commented 4 months ago

https://github.com/cxong/cdogs-sdl/commit/7fa536b9895a923b6ee945651101ca29d1b50f10 this change may be relevant, for setting DATA_INSTALL_DIR