]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/filecache.cpp
Remove unused ITextSceneNode header (#11476)
[dragonfireclient.git] / src / client / filecache.cpp
index 3d1b302a8cc59e8a5c4cbe9eef2061fac8ba18f2..46bbe40595edab8107e9030e8f16853554e204bc 100644 (file)
@@ -82,8 +82,16 @@ bool FileCache::update(const std::string &name, const std::string &data)
        std::string path = m_dir + DIR_DELIM + name;
        return updateByPath(path, data);
 }
+
 bool FileCache::load(const std::string &name, std::ostream &os)
 {
        std::string path = m_dir + DIR_DELIM + name;
        return loadByPath(path, os);
 }
+
+bool FileCache::exists(const std::string &name)
+{
+       std::string path = m_dir + DIR_DELIM + name;
+       std::ifstream fis(path.c_str(), std::ios_base::binary);
+       return fis.good();
+}