From f1933fc7ba1051f25a6ef5eab05cadc9d62a64a8 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Tue, 11 Dec 2018 01:20:57 +0100 Subject: [PATCH] GetDataFilePath: support launching straight from the build directory --- src/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index d2a5556..0285fe3 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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; }