mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Make chdir usage consistent with other source usage
This commit is contained in:
parent
614449298e
commit
6845aca6e5
1 changed files with 7 additions and 1 deletions
|
@ -909,7 +909,13 @@ static void IdentifyVersion(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
CONS_Printf("%s\n", srb2path);
|
CONS_Printf("%s\n", srb2path);
|
||||||
chdir(srb2path);
|
|
||||||
|
#if defined (_WIN32)
|
||||||
|
SetCurrentDirectoryA(srb2path);
|
||||||
|
#else
|
||||||
|
if (chdir(srb2path) == -1)
|
||||||
|
I_OutputMsg("Couldn't change working directory\n");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (defined (__unix__) && !defined (MSDOS)) || defined (UNIXCOMMON) || defined (HAVE_SDL)
|
#if (defined (__unix__) && !defined (MSDOS)) || defined (UNIXCOMMON) || defined (HAVE_SDL)
|
||||||
|
|
Loading…
Reference in a new issue