summaryrefslogtreecommitdiffstats
path: root/src/common/resources/inputstreambuffer.cpp
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2014-10-26 18:30:56 +0100
committerkrzys-h <krzys_h@interia.pl>2014-10-26 18:35:13 +0100
commitca4f1e85d2812ad715e21be96413efe155b58a84 (patch)
tree134cc4346b7a7e674411fb2170f9087b3f76a513 /src/common/resources/inputstreambuffer.cpp
parent4485905e0f21cb4f87a1d9509aa1633035028b04 (diff)
downloadcolobot-ca4f1e85d2812ad715e21be96413efe155b58a84.tar.gz
colobot-ca4f1e85d2812ad715e21be96413efe155b58a84.tar.bz2
colobot-ca4f1e85d2812ad715e21be96413efe155b58a84.zip
Support for %lvl% in all commands
Except for TerrainInitTextures (I'm not sure what it does but it does something weird)
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());
}