AlexAUT / Kroniax_Cpp

The official source of the game Kroniax
MIT License
19 stars 4 forks source link

Make the game system-installatable on Linux #16

Open akien-mga opened 9 years ago

akien-mga commented 9 years ago

That means mostly to provide a way to specify a location for the game's data files different from ".". It could probably be done with an optional DATADIR parameter passed to the compiler, that would override the default "./data" path if DATADIR has been specified.

akien-mga commented 9 years ago

I might give it a try by the way, even though I'm not very fluent in C++. My idea would be to include a "global.hpp" header in every C++ file that requires access to game data, and define the base data path there ("./data" by default, or DATADIR if specified).