mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-08 06:06:43 +01:00
GetDataFilePath: support launching straight from the build directory
This commit is contained in:
parent
ee058b439a
commit
f1933fc7ba
1 changed files with 2 additions and 1 deletions
|
@ -352,9 +352,10 @@ static char* TestDataFilePath(struct Game* game, const char* filename) {
|
||||||
|
|
||||||
#ifdef ALLEGRO_MACOSX
|
#ifdef ALLEGRO_MACOSX
|
||||||
TestPath(filename, "../Resources/data/", &result);
|
TestPath(filename, "../Resources/data/", &result);
|
||||||
TestPath(filename, "../Resources/gamestates/", &result);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
TestPath(filename, "../../data/", &result);
|
||||||
|
|
||||||
if (result) {
|
if (result) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue