From: Guus Sliepen Date: Mon, 14 Feb 2011 15:14:24 +0000 (+0100) Subject: Chdir() to the data directory when RELEASE is #defined. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a88baaead4598c36103872054e7cec46281f662e;p=quix0rs-blobwars.git 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. --- 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;