[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src config.cxx,1.13,1.14
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src config.cxx,1.13,1.14 |
Date: |
16 Apr 2003 01:15:47 -0000 |
Update of /var/lib/cvs/Games/Pingus/src
In directory dark:/tmp/cvs-serv19767/src
Modified Files:
config.cxx
Log Message:
- added check if config file is present
- updated NEWS
Index: config.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/config.cxx,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- config.cxx 10 Apr 2003 18:28:30 -0000 1.13
+++ config.cxx 16 Apr 2003 01:15:45 -0000 1.14
@@ -23,7 +23,7 @@
#include "globals.hxx"
#include "pingus_error.hxx"
#include "config.hxx"
-
+#include "system.hxx"
#include "cheat.hxx"
#include "my_gettext.hxx"
@@ -48,8 +48,11 @@
try {
// Start parsing
- open(filename);
- parse();
+ if (System::exist(filename))
+ {
+ open(filename);
+ parse();
+ }
}
catch (PingusError& err) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src config.cxx,1.13,1.14,
grumbel <=