Add option to turn off switching into executable dir on startup

This commit is contained in:
Jonas Kulla 2014-08-02 09:30:17 +02:00
parent cc7218c19d
commit 3bcf995832
3 changed files with 12 additions and 1 deletions

View file

@ -175,6 +175,7 @@ int main(int argc, char *argv[])
return 0;
}
#ifndef WORKDIR_CURRENT
/* set working directory */
char *dataDir = SDL_GetBasePath();
if (dataDir)
@ -183,6 +184,7 @@ int main(int argc, char *argv[])
(void)result;
SDL_free(dataDir);
}
#endif
/* now we load the config */
Config conf;