From a88baaead4598c36103872054e7cec46281f662e Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 14 Feb 2011 16:14:24 +0100 Subject: [PATCH] Chdir() to the data directory when RELEASE is #defined. This ensures an installed version of Blobwars can find the data files if it is not in a .pak file. --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 6a4d6b8..c7f0f2c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -102,6 +102,10 @@ int main(int argc, char *argv[]) #if !USEPAK debug(("Not Using PAK...\n")); #endif + + #if RELEASE + chdir(PAKLOCATION); + #endif config.engine = &engine; -- 2.39.5