summaryrefslogtreecommitdiffstats
path: root/src/ingen/ingen.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-01 05:31:59 -0400
committerDavid Robillard <d@drobilla.net>2016-10-01 05:49:13 -0400
commit8df90e13115348807fcea0c1d81bca1b2ec053a0 (patch)
tree05783ae66df9a738c51c171ff766fe29e26e985c /src/ingen/ingen.cpp
parenta7f83c70733288ee9efee5c08330fbdf638446db (diff)
downloadingen-8df90e13115348807fcea0c1d81bca1b2ec053a0.tar.gz
ingen-8df90e13115348807fcea0c1d81bca1b2ec053a0.tar.bz2
ingen-8df90e13115348807fcea0c1d81bca1b2ec053a0.zip
Save global options to options.ttl
Diffstat (limited to 'src/ingen/ingen.cpp')
-rw-r--r--src/ingen/ingen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp
index a6ba7f41..1e407507 100644
--- a/src/ingen/ingen.cpp
+++ b/src/ingen/ingen.cpp
@@ -233,6 +233,11 @@ main(int argc, char** argv)
if (world->engine())
world->engine()->deactivate();
+ // Save configuration to restore preferences on next run
+ const std::string path = conf.save(
+ world->uri_map(), "ingen", "options.ttl", Configuration::GLOBAL);
+ std::cout << (fmt("Saved configuration to %1%") % path) << std::endl;
+
engine_interface.reset();
delete world;