diff options
Diffstat (limited to 'engines/sherlock/resources.cpp')
-rw-r--r-- | engines/sherlock/resources.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sherlock/resources.cpp b/engines/sherlock/resources.cpp index cdea7bd296..66feca6bd5 100644 --- a/engines/sherlock/resources.cpp +++ b/engines/sherlock/resources.cpp @@ -194,6 +194,13 @@ Common::SeekableReadStream *Resources::load(const Common::String &filename, cons return stream; } +/** + * Returns true if the given file exists on disk or in the cache + */ +bool Resources::exists(const Common::String &filename) const { + Common::File f; + return f.exists(filename) || _cache.isCached(filename); +} /** * Reads in the index from a library file, and caches it's index for later use |