TestDataFilePath: handle /usr/share/games/ data path

This makes it work with proper Debian packages.
This commit is contained in:
Sebastian Krzyszkowiak 2019-11-11 21:24:43 +01:00
parent 5c9ebfdbdd
commit 3c0f104add
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -347,6 +347,7 @@ static char* TestDataFilePath(struct Game* game, const char* filename) {
TestPath(filename, "data/", &result);
TestPath(filename, GetGameName(game, "../share/%s/data/"), &result);
TestPath(filename, GetGameName(game, "../share/games/%s/data/"), &result);
#ifdef ALLEGRO_MACOSX
TestPath(filename, "../Resources/data/", &result);