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:
+6
-3
@@ -38,10 +38,13 @@ CDToContentDir (char *contentdir)
|
|||||||
|
|
||||||
if (!FileExists (testfile))
|
if (!FileExists (testfile))
|
||||||
{
|
{
|
||||||
if (chdir(contentdir) || !FileExists (testfile))
|
if (chdir (contentdir) || !FileExists (testfile))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Fatal error: content not available, running from wrong dir?\n");
|
if (chdir ("content") || !FileExists (testfile))
|
||||||
exit(-1);
|
{
|
||||||
|
fprintf(stderr, "Fatal error: content not available, running from wrong dir?\n");
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user