summaryrefslogtreecommitdiffstats
path: root/src/common/resources/inputstreambuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/resources/inputstreambuffer.cpp')
-rw-r--r--src/common/resources/inputstreambuffer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/resources/inputstreambuffer.cpp b/src/common/resources/inputstreambuffer.cpp
index 7059d60..9ac1fec 100644
--- a/src/common/resources/inputstreambuffer.cpp
+++ b/src/common/resources/inputstreambuffer.cpp
@@ -19,6 +19,8 @@
#include "common/resources/inputstreambuffer.h"
+#include "common/resources/resourcemanager.h"
+
#include <stdexcept>
#include <sstream>
@@ -44,7 +46,7 @@ CInputStreamBuffer::~CInputStreamBuffer()
void CInputStreamBuffer::open(const std::string &filename)
{
if (PHYSFS_isInit())
- m_file = PHYSFS_openRead(filename.c_str());
+ m_file = PHYSFS_openRead(CResourceManager::CleanPath(filename).c_str());
}