summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-03-23 19:45:35 +0100
committerGravatar waker <wakeroid@gmail.com>2011-03-23 19:45:35 +0100
commit33228a539608bb256f7701908cee255e46107112 (patch)
treeb1338d878f3e0990778c25cd942fe8d4111192ad /main.c
parent78621ec984f1d1fae0f3ba0ad70d0937bfe7ff82 (diff)
save ddb version to config file
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 31176cb1..ae962c71 100644
--- a/main.c
+++ b/main.c
@@ -762,6 +762,9 @@ main (int argc, char *argv[]) {
pl_init ();
conf_load (); // required by some plugins at startup
+
+ conf_set_str ("deadbeef_version", VERSION);
+
volume_set_db (conf_get_float ("playback.volume", 0)); // volume need to be initialized before plugins start
messagepump_init (); // required to push messages while handling commandline
if (plug_load_all ()) { // required to add files to playlist from commandline