diff options
| author | Max Horn | 2006-04-26 08:05:40 +0000 | 
|---|---|---|
| committer | Max Horn | 2006-04-26 08:05:40 +0000 | 
| commit | d5224d87bbdc89101801228236e6925995669bd2 (patch) | |
| tree | 58573c3ffbf116a599df2aa14e7ee3cb83c5fa98 | |
| parent | 2cbcd49893f0099c8fb0fbee076ac242a2b8c5e0 (diff) | |
| download | scummvm-rg350-d5224d87bbdc89101801228236e6925995669bd2.tar.gz scummvm-rg350-d5224d87bbdc89101801228236e6925995669bd2.tar.bz2 scummvm-rg350-d5224d87bbdc89101801228236e6925995669bd2.zip | |
Properly re-implemented File::exists to FilesystemNode (this should fix bug #1476651, at least partially)
svn-id: r22169
| -rw-r--r-- | common/file.cpp | 4 | ||||
| -rw-r--r-- | common/file.h | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/common/file.cpp b/common/file.cpp index e124a5f90f..29c3b332da 100644 --- a/common/file.cpp +++ b/common/file.cpp @@ -262,10 +262,10 @@ bool File::open(const String &filename, AccessMode mode, const char *directory)  	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() { diff --git a/common/file.h b/common/file.h index 27d062a41d..995e776a82 100644 --- a/common/file.h +++ b/common/file.h @@ -61,7 +61,7 @@ public:  	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; | 
