diff options
author | David Robillard <d@drobilla.net> | 2011-10-22 05:12:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-22 05:12:51 +0000 |
commit | 389da7d63b8e78baacf22cf52905dc5420079d71 (patch) | |
tree | 053f11351188f4bfc3086453d074ed36e513e394 /src/ingen | |
parent | d3c91af24a76bf999f18eab5cb5136857c93125a (diff) | |
download | ingen-389da7d63b8e78baacf22cf52905dc5420079d71.tar.gz ingen-389da7d63b8e78baacf22cf52905dc5420079d71.tar.bz2 ingen-389da7d63b8e78baacf22cf52905dc5420079d71.zip |
Simplify Parser.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3589 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ingen')
-rw-r--r-- | src/ingen/main.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp index 62c2b757..38442878 100644 --- a/src/ingen/main.cpp +++ b/src/ingen/main.cpp @@ -204,19 +204,12 @@ main(int argc, char** argv) ingen_try(world->parser(), "Unable to create parser"); - 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::filename_to_uri( - (Glib::path_is_absolute(uri)) - ? uri - : Glib::build_filename(Glib::get_current_dir(), uri)); - } + const string path = conf.option("load").get_string(); engine_interface->get("ingen:plugins"); engine_interface->get("path:/"); world->parser()->parse_file( - world, engine_interface.get(), uri, parent, symbol); + world, engine_interface.get(), path, parent, symbol); } if (conf.option("gui").get_bool()) { |