summaryrefslogtreecommitdiffstats
path: root/src/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-17 07:02:28 +0000
committerDavid Robillard <d@drobilla.net>2011-02-17 07:02:28 +0000
commit4c6269aeaf39f1a5c7473c22ff0417d50decfdc3 (patch)
tree87c37fb8fa82e379f8887bf8dc4281f9cf25df3c /src/ingen
parent1358b2c267317be22097c3b38bfba02630d666dd (diff)
downloadingen-4c6269aeaf39f1a5c7473c22ff0417d50decfdc3.tar.gz
ingen-4c6269aeaf39f1a5c7473c22ff0417d50decfdc3.tar.bz2
ingen-4c6269aeaf39f1a5c7473c22ff0417d50decfdc3.zip
Fix ingen --load/-l.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2977 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ingen')
-rw-r--r--src/ingen/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp
index 2b1a17f4..fa638063 100644
--- a/src/ingen/main.cpp
+++ b/src/ingen/main.cpp
@@ -96,7 +96,7 @@ main(int argc, char** argv)
return EXIT_SUCCESS;
}
- // Set bundle path from executable location so resources/modules can be found
+ // Set bundle path from executable location so resources can be found
Shared::set_bundle_path_from_code((void*)&main);
SharedPtr<Shared::EngineInterface> engine_interface;
@@ -181,9 +181,10 @@ main(int argc, char** argv)
string uri = conf.option("load").get_string();
if (!serd_uri_string_has_scheme((const uint8_t*)uri.c_str())) {
// Does not start with legal URI scheme, assume path
- uri = (Glib::path_is_absolute(uri))
+ uri = Glib::filename_to_uri(
+ (Glib::path_is_absolute(uri))
? uri
- : Glib::build_filename(Glib::get_current_dir(), uri);
+ : Glib::build_filename(Glib::get_current_dir(), uri));
}
engine_interface->load_plugins();