Fixed it little more (so default behaviour is same for win32 and linux

now)


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@182 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2002-10-29 01:16:12 +00:00
parent 0b69b6a016
commit 5aa6d15dcd
+1 -5
View File
@@ -40,7 +40,7 @@ CDToContentDir (char *contentdir)
{
if (chdir (contentdir) || !FileExists (testfile))
{
if (chdir ("content") || !FileExists (testfile))
if (chdir ("../../content") || !FileExists (testfile))
{
fprintf(stderr, "Fatal error: content not available, running from wrong dir?\n");
exit(-1);
@@ -83,11 +83,7 @@ main (int argc, char *argv[])
fprintf (stderr, "The Ur-Quan Masters v%d.%d (compiled %s %s)\n", UQM_MAJOR_VERSION, UQM_MINOR_VERSION, __DATE__, __TIME__);
#ifndef WIN32
strcpy (contentdir, "content");
#else
strcpy (contentdir, "../../content");
#endif
while ((c = getopt_long(argc, argv, "r:d:fob:ptc:?hM:S:T:emq:", long_options, &option_index)) != -1)
{