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