summaryrefslogtreecommitdiffstats
path: root/src/progs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-05-04 06:41:12 +0000
committerDavid Robillard <d@drobilla.net>2007-05-04 06:41:12 +0000
commitacdd2da8b42a590406aef07b8b63ba96b3e587a4 (patch)
treee0aa3e65fac15501a07cf074c522c16fd8156886 /src/progs
parent515a22e7f1175dfcc89657f805557348a93b3682 (diff)
downloadingen-acdd2da8b42a590406aef07b8b63ba96b3e587a4.tar.gz
ingen-acdd2da8b42a590406aef07b8b63ba96b3e587a4.tar.bz2
ingen-acdd2da8b42a590406aef07b8b63ba96b3e587a4.zip
Work on internal engine + GUI (still some problems).
git-svn-id: http://svn.drobilla.net/lad/ingen@498 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs')
-rw-r--r--src/progs/ingen/main.cpp13
1 files changed, 9 insertions, 4 deletions
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<Glib::Module> client_module;
SharedPtr<Glib::Module> gui_module;
-
SharedPtr<Shared::EngineInterface> 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<Ingen::Engine>, SharedPtr<Shared::EngineInterface>) = 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;