mirror of https://github.com/OpenTTD/OpenTTD
(svn r15745) -Fix: Resolve compile error in fileio.cpp on OS/2 - base paths on OS/2 behave much like DOS
parent
f62e71ba8e
commit
bcc870e3f8
|
@ -829,7 +829,7 @@ void ChangeWorkingDirectory(const char *exe)
|
||||||
void DetermineBasePaths(const char *exe)
|
void DetermineBasePaths(const char *exe)
|
||||||
{
|
{
|
||||||
char tmp[MAX_PATH];
|
char tmp[MAX_PATH];
|
||||||
#if defined(__MORPHOS__) || defined(__AMIGA__) || defined(DOS) || !defined(WITH_PERSONAL_DIR)
|
#if defined(__MORPHOS__) || defined(__AMIGA__) || defined(DOS) || defined(OS2) || !defined(WITH_PERSONAL_DIR)
|
||||||
_searchpaths[SP_PERSONAL_DIR] = NULL;
|
_searchpaths[SP_PERSONAL_DIR] = NULL;
|
||||||
#else
|
#else
|
||||||
const char *homedir = getenv("HOME");
|
const char *homedir = getenv("HOME");
|
||||||
|
@ -867,7 +867,7 @@ void DetermineBasePaths(const char *exe)
|
||||||
AppendPathSeparator(tmp, MAX_PATH);
|
AppendPathSeparator(tmp, MAX_PATH);
|
||||||
_searchpaths[SP_BINARY_DIR] = strdup(tmp);
|
_searchpaths[SP_BINARY_DIR] = strdup(tmp);
|
||||||
|
|
||||||
#if defined(__MORPHOS__) || defined(__AMIGA__) || defined(DOS)
|
#if defined(__MORPHOS__) || defined(__AMIGA__) || defined(DOS) || defined(OS2)
|
||||||
_searchpaths[SP_INSTALLATION_DIR] = NULL;
|
_searchpaths[SP_INSTALLATION_DIR] = NULL;
|
||||||
#else
|
#else
|
||||||
snprintf(tmp, MAX_PATH, "%s", GLOBAL_DATA_DIR);
|
snprintf(tmp, MAX_PATH, "%s", GLOBAL_DATA_DIR);
|
||||||
|
|
Loading…
Reference in New Issue