Open akien-mga opened 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).
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 ifDATADIR
has been specified.