summaryrefslogtreecommitdiffstats
path: root/src/client/DeprecatedLoader.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-04 20:45:14 +0000
committerDavid Robillard <d@drobilla.net>2010-03-04 20:45:14 +0000
commitefca18acf1e17be9932b375347ce95f733c2dc59 (patch)
treed5bf359f287281fe9b2760fd7ec653f3ea5e3451 /src/client/DeprecatedLoader.cpp
parentf2d901fe0424bafa39b794117c9547e4969017c6 (diff)
downloadingen-efca18acf1e17be9932b375347ce95f733c2dc59.tar.gz
ingen-efca18acf1e17be9932b375347ce95f733c2dc59.tar.bz2
ingen-efca18acf1e17be9932b375347ce95f733c2dc59.zip
Use portable path construction.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2518 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/DeprecatedLoader.cpp')
-rw-r--r--src/client/DeprecatedLoader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/DeprecatedLoader.cpp b/src/client/DeprecatedLoader.cpp
index 35cbd05a..ac71a32d 100644
--- a/src/client/DeprecatedLoader.cpp
+++ b/src/client/DeprecatedLoader.cpp
@@ -27,6 +27,7 @@
#include <libxml/parser.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
+#include <glibmm/miscutils.h>
#include "raul/log.hpp"
#include "raul/Path.hpp"
#include "shared/LV2URIMap.hpp"
@@ -571,7 +572,7 @@ DeprecatedLoader::load_subpatch(const string& base_filename, const Path& parent,
} else if ((!xmlStrcmp(cur->name, (const xmlChar*)"polyphony"))) {
initial_data.insert(make_pair(uris.ingen_polyphony, (int)poly));
} else if ((!xmlStrcmp(cur->name, (const xmlChar*)"filename"))) {
- filename = base_filename + "/" + (const char*)key;
+ filename = Glib::build_filename(base_filename, (const char*)key);
} else { // Don't know what this tag is, add it as variable
if (key != NULL && strlen((const char*)key) > 0)
add_variable(initial_data, (const char*)cur->name, (const char*)key);