mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 22:28:56 +00:00
(svn r17686) -Fix [FS#3247]: make the -c <config file> location relative to the current directory instead of the directory of the binary
This commit is contained in:
parent
afed4330da
commit
f76ef2f6ce
@ -874,6 +874,11 @@ void DetermineBasePaths(const char *exe)
|
||||
AppendPathSeparator(tmp, MAX_PATH);
|
||||
_searchpaths[SP_BINARY_DIR] = strdup(tmp);
|
||||
|
||||
if (_searchpaths[SP_WORKING_DIR] != NULL) {
|
||||
/* Go back to the current working directory. */
|
||||
ChangeWorkingDirectory(_searchpaths[SP_WORKING_DIR]);
|
||||
}
|
||||
|
||||
#if defined(__MORPHOS__) || defined(__AMIGA__) || defined(DOS) || defined(OS2)
|
||||
_searchpaths[SP_INSTALLATION_DIR] = NULL;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user