diff options
author | Filippos Karapetis | 2013-01-07 19:42:46 +0200 |
---|---|---|
committer | Filippos Karapetis | 2013-01-07 19:42:46 +0200 |
commit | 60e11931ba4e4bec8e6e38eb8e946ca71624c274 (patch) | |
tree | 7b1c5694effa6fdccc0ed37b56d283a072b14c2c /engines/hopkins/files.cpp | |
parent | 5f171c51bf9bf297459245a1f0abcfaac055f8a9 (diff) | |
download | scummvm-rg350-60e11931ba4e4bec8e6e38eb8e946ca71624c274.tar.gz scummvm-rg350-60e11931ba4e4bec8e6e38eb8e946ca71624c274.tar.bz2 scummvm-rg350-60e11931ba4e4bec8e6e38eb8e946ca71624c274.zip |
HOPKINS: Fix fileExists()
Diffstat (limited to 'engines/hopkins/files.cpp')
-rw-r--r-- | engines/hopkins/files.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index 4aeba02a74..0ff2668d07 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -72,7 +72,7 @@ void FileManager::initCensorship() { _vm->_globals._censorshipFl = false; // If file doesn't exist, fallback to uncensored - if (!fileExists("SYSTEM", "BLOOD.DAT")) { + if (fileExists("SYSTEM", "BLOOD.DAT")) { constructFilename("SYSTEM", "BLOOD.DAT"); char *data = (char *)loadFile(_vm->_globals._curFilename); @@ -117,8 +117,7 @@ bool FileManager::fileExists(const Common::String &folder, const Common::String Common::String filename = folder.empty() ? file : Common::String::format("%s/%s", folder.c_str(), file.c_str()); - Common::File f; - return !f.exists(filename); + return Common::File::exists(filename); } /** |