GetDataFilePath: support launching straight from the build directory

This commit is contained in:
Sebastian Krzyszkowiak 2018-12-11 01:20:57 +01:00
parent ee058b439a
commit f1933fc7ba
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -352,9 +352,10 @@ static char* TestDataFilePath(struct Game* game, const char* filename) {
#ifdef ALLEGRO_MACOSX
TestPath(filename, "../Resources/data/", &result);
TestPath(filename, "../Resources/gamestates/", &result);
#endif
TestPath(filename, "../../data/", &result);
if (result) {
return result;
}