mail[Wesnoth-commits] r33469 - /trunk/src/filesystem.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on March 08, 2009 - 21:00:
Author: silene
Date: Sun Mar  8 21:00:19 2009
New Revision: 33469

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33469&view=rev
Log:
Downgraded fatal errors on relative paths to warnings, just to avoid any 
unforeseen issues.

Modified:
    trunk/src/filesystem.cpp

Modified: trunk/src/filesystem.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/filesystem.cpp?rev=33469&r1=33468&r2=33469&view=diff
==============================================================================
--- trunk/src/filesystem.cpp (original)
+++ trunk/src/filesystem.cpp Sun Mar  8 21:00:19 2009
@@ -627,10 +627,12 @@
        // TODO: Should also be done for Windows; but *nix systems should
        // already be sufficient to catch most offenders.
        if (fname[0] != '/') {
-               ERR_FS << "Trying to open file with relative path: '" << 
fname << "'.\n";
+               WRN_FS << "Trying to open file with relative path: '" << 
fname << "'.\n";
+#if 0
                std::ifstream *s = new std::ifstream();
                s->clear(std::ios_base::failbit);
                return s;
+#endif
        }
 #endif
        std::ifstream *s = new 
std::ifstream(fname.c_str(),std::ios_base::binary);




Related Messages


Powered by MHonArc, Updated Sun Mar 08 21:20:35 2009