netpanzer-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netPanzer-CVS] netpanzer/src/NetPanzer/Core main.cpp


From: Matthias Braun
Subject: [netPanzer-CVS] netpanzer/src/NetPanzer/Core main.cpp
Date: Thu, 25 Sep 2003 12:59:52 -0400

CVSROOT:        /cvsroot/netpanzer
Module name:    netpanzer
Branch:         
Changes by:     Matthias Braun <address@hidden> 03/09/25 12:59:52

Modified files:
        src/NetPanzer/Core: main.cpp 

Log message:
        it's no problem when adding the datadir failed (happens always on win32 
for example)

Patches:
Index: netpanzer/src/NetPanzer/Core/main.cpp
diff -u netpanzer/src/NetPanzer/Core/main.cpp:1.11 
netpanzer/src/NetPanzer/Core/main.cpp:1.12
--- netpanzer/src/NetPanzer/Core/main.cpp:1.11  Wed Sep 24 16:31:09 2003
+++ netpanzer/src/NetPanzer/Core/main.cpp       Thu Sep 25 12:59:51 2003
@@ -139,14 +139,19 @@
     // Initialize libphysfs
     try {
         FileSystem::initialize(argv[0], "netpanzer", "netpanzer");
-#ifdef DATADIR
-        FileSystem::addToSearchPath(DATADIR);
-#endif
     } catch(Exception e) {
         fprintf(stderr, "%s", e.getMessage());
         shutdown();
         exit(1);
     }
+
+    // try adding the DATADIR
+#ifdef DATADIR
+    try {
+       FileSystem::addToSearchPath(DATADIR);
+    } catch(...)
+    { }
+#endif
 
     LOGGER.openLogFile("log.txt");
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]