aboutsummaryrefslogtreecommitdiffstats
path: root/src/machina.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-22 01:16:48 +0000
committerDavid Robillard <d@drobilla.net>2007-03-22 01:16:48 +0000
commitb80654a5193536050c8f8e494ba5fd402b7a18aa (patch)
treee2f74b7341590587d32b01cc0595efd15e3ae59c /src/machina.cpp
parent9de593d8780ec6fec43703df7a532e65baa44510 (diff)
downloadmachina-b80654a5193536050c8f8e494ba5fd402b7a18aa.tar.gz
machina-b80654a5193536050c8f8e494ba5fd402b7a18aa.tar.bz2
machina-b80654a5193536050c8f8e494ba5fd402b7a18aa.zip
Cleaned up loading code.
Preliminary action loading code (queried from RDF but not actually created yet). Fixed URI/filename handling so command line 'machina' accepts either. git-svn-id: http://svn.drobilla.net/lad/machina@367 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/machina.cpp')
-rw-r--r--src/machina.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/machina.cpp b/src/machina.cpp
index f04a646..42f45d4 100644
--- a/src/machina.cpp
+++ b/src/machina.cpp
@@ -56,12 +56,14 @@ main(int argc, char** argv)
Engine engine(driver);
- // FIXME: Would be nice if this could take URIs on the cmd line
+ /*// FIXME: Would be nice if this could take URIs on the cmd line
char* uri = (char*)calloc(6 + strlen(argv[1]), sizeof(char));
strcpy(uri, "file:");
strcat(uri, argv[1]);
engine.load_machine(uri);
free(uri);
+*/
+ engine.load_machine(argv[1]);
driver->attach("machina");