[Scummvm-cvs-logs] SF.net SVN: scummvm:[43090] tools/branches/gsoc2009-gui/utils/file.cpp
Remere at users.sourceforge.net
Remere at users.sourceforge.net
Thu Aug 6 20:25:32 CEST 2009
Revision: 43090
http://scummvm.svn.sourceforge.net/scummvm/?rev=43090&view=rev
Author: Remere
Date: 2009-08-06 18:25:32 +0000 (Thu, 06 Aug 2009)
Log Message:
-----------
*Fixed bugged File constructor that didn't set xormode properly.
Modified Paths:
--------------
tools/branches/gsoc2009-gui/utils/file.cpp
Modified: tools/branches/gsoc2009-gui/utils/file.cpp
===================================================================
--- tools/branches/gsoc2009-gui/utils/file.cpp 2009-08-06 18:07:05 UTC (rev 43089)
+++ tools/branches/gsoc2009-gui/utils/file.cpp 2009-08-06 18:25:32 UTC (rev 43090)
@@ -199,6 +199,7 @@
File::File(const Filename &filepath, FileMode mode) {
_file = NULL;
_mode = FILEMODE_READ;
+ _xormode = 0;
open(filepath, mode);
}
@@ -206,6 +207,7 @@
File::File(const Filename &filepath, const char *mode) {
_file = NULL;
_mode = FILEMODE_READ;
+ _xormode = 0;
open(filepath, mode);
}
@@ -246,6 +248,7 @@
_file = fopen(filepath.getFullPath().c_str(), strmode.c_str());
_mode = mode;
_name = filepath;
+ _xormode = 0;
if (!_file)
throw FileException("Could not open file " + filepath.getFullPath());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list