From 0b69b6a016516fe061553ff4db6b0f58e3c3dff9 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Tue, 29 Oct 2002 01:09:46 +0000 Subject: [PATCH] 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 --- sc2/src/starcon2.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sc2/src/starcon2.c b/sc2/src/starcon2.c index c4d7cb522..bedbc3cfa 100644 --- a/sc2/src/starcon2.c +++ b/sc2/src/starcon2.c @@ -38,10 +38,13 @@ CDToContentDir (char *contentdir) 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"); - exit(-1); + if (chdir ("content") || !FileExists (testfile)) + { + fprintf(stderr, "Fatal error: content not available, running from wrong dir?\n"); + exit(-1); + } } } }