Add option to turn off switching into executable dir on startup
This commit is contained in:
parent
cc7218c19d
commit
3bcf995832
3 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue