[Scummvm-cvs-logs] SF.net SVN: scummvm: [22169] scummvm/trunk/common

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Apr 26 01:06:01 CEST 2006


Revision: 22169
Author:   fingolfin
Date:     2006-04-26 01:05:40 -0700 (Wed, 26 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22169&view=rev

Log Message:
-----------
Properly re-implemented File::exists to FilesystemNode (this should fix bug #1476651, at least partially)

Modified Paths:
--------------
    scummvm/trunk/common/file.cpp
    scummvm/trunk/common/file.h
Modified: scummvm/trunk/common/file.cpp
===================================================================
--- scummvm/trunk/common/file.cpp	2006-04-26 06:12:03 UTC (rev 22168)
+++ scummvm/trunk/common/file.cpp	2006-04-26 08:05:40 UTC (rev 22169)
@@ -262,10 +262,10 @@
 	return true;
 }
 
-bool File::exists(const String &filename, const char *directory) {
+bool File::exists(const String &filename) {
 	// FIXME: Ugly ugly hack!
 	File tmp;
-	return tmp.open(filename, kFileReadMode, directory);
+	return tmp.open(filename, kFileReadMode);
 }
 
 void File::close() {

Modified: scummvm/trunk/common/file.h
===================================================================
--- scummvm/trunk/common/file.h	2006-04-26 06:12:03 UTC (rev 22168)
+++ scummvm/trunk/common/file.h	2006-04-26 08:05:40 UTC (rev 22169)
@@ -61,7 +61,7 @@
 	void decRef();
 
 	virtual bool open(const String &filename, AccessMode mode = kFileReadMode, const char *directory = NULL);
-	static bool exists(const String &filename, const char *directory = NULL);
+	static bool exists(const String &filename);
 
 	virtual void close();
 	bool isOpen() const;


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