mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 19:54:03 +00:00
Properly re-implemented File::exists to FilesystemNode (this should fix bug #1476651, at least partially)
svn-id: r22169
This commit is contained in:
parent
2cbcd49893
commit
d5224d87bb
@ -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() {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user