From acdd2da8b42a590406aef07b8b63ba96b3e587a4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 4 May 2007 06:41:12 +0000 Subject: Work on internal engine + GUI (still some problems). git-svn-id: http://svn.drobilla.net/lad/ingen@498 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingen/main.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/progs') diff --git a/src/progs/ingen/main.cpp b/src/progs/ingen/main.cpp index 57b8bf5c..62bc29aa 100644 --- a/src/progs/ingen/main.cpp +++ b/src/progs/ingen/main.cpp @@ -68,9 +68,9 @@ main(int argc, char** argv) SharedPtr client_module; SharedPtr gui_module; - SharedPtr engine_interface; + /* Run engine */ if (args.engine_flag) { @@ -93,7 +93,7 @@ main(int argc, char** argv) } else { engine_module.reset(); } - engine_interface = engine->new_queued_interface(); + /*} else { cerr << "Nonsense command line parameters, engine not loaded." << endl; }*/ @@ -103,6 +103,11 @@ main(int argc, char** argv) } } + + if (engine) { + engine_interface = engine->new_queued_interface(); + engine->activate(); + } /* Connect to remote engine */ @@ -173,12 +178,12 @@ main(int argc, char** argv) bool ran_gui = false; if (args.gui_given) { gui_module = Ingen::Shared::load_module("ingen_gui"); - void (*run)(int, char**) = NULL; + void (*run)(int, char**, SharedPtr, SharedPtr) = NULL; bool found = gui_module->get_symbol("run", (void*&)run); if (found) { ran_gui = true; - run(argc, argv); + run(argc, argv, engine, engine_interface); } else { cerr << "Unable to find GUI module, GUI not loaded." << endl; cerr << "Try running ingen_dev or setting INGEN_MODULE_PATH." << endl; -- cgit v1.2.1