Fixed one issue with win32 content dir detection

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@181 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-10-29 01:09:46 +00:00
parent 1b9534f8ec
commit 0b69b6a016
+4 -1
View File
@@ -38,12 +38,15 @@ CDToContentDir (char *contentdir)
if (!FileExists (testfile))
{
if (chdir(contentdir) || !FileExists (testfile))
if (chdir (contentdir) || !FileExists (testfile))
{
if (chdir ("content") || !FileExists (testfile))
{
fprintf(stderr, "Fatal error: content not available, running from wrong dir?\n");
exit(-1);
}
}
}
}
int