summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/resources/resourcemanager.cpp6
-rw-r--r--src/common/resources/resourcemanager.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/common/resources/resourcemanager.cpp b/src/common/resources/resourcemanager.cpp
index b01424b..5e8627d 100644
--- a/src/common/resources/resourcemanager.cpp
+++ b/src/common/resources/resourcemanager.cpp
@@ -130,6 +130,12 @@ CSNDFile* CResourceManager::GetSNDFileHandler(const std::string &filename)
}
+bool CResourceManager::Exists(const std::string &filename)
+{
+ return PHYSFS_exists(filename.c_str());
+}
+
+
int CResourceManager::SDLClose(SDL_RWops *context)
{
if (CheckSDLContext(context))
diff --git a/src/common/resources/resourcemanager.h b/src/common/resources/resourcemanager.h
index fec71da..36f6fa5 100644
--- a/src/common/resources/resourcemanager.h
+++ b/src/common/resources/resourcemanager.h
@@ -33,6 +33,7 @@ public:
static std::string GetLanguageLocation();
static SDL_RWops* GetSDLFileHandler(const std::string &filename);
static CSNDFile* GetSNDFileHandler(const std::string &filename);
+ static bool Exists(const std::string &filename);
private:
static int SDLSeek(SDL_RWops *context, int offset, int whence);