diff Plugins/Visualization/paranormal/client.c @ 1532:f74a6ba233c2 trunk

[svn] - allow configdb::pnxmms::preset to set what pn preset to load on start
author nenolod
date Tue, 08 Aug 2006 02:19:55 -0700
parents bdb22d1e6302
children 984c99a1fb2e
line wrap: on
line diff
--- a/Plugins/Visualization/paranormal/client.c	Mon Aug 07 23:49:36 2006 -0700
+++ b/Plugins/Visualization/paranormal/client.c	Tue Aug 08 02:19:55 2006 -0700
@@ -430,6 +430,8 @@
   if (bmp_cfg_db_get_int (cfg, "pnxmms", "image_height", &i))
     image_height = i;
 
+  bmp_cfg_db_get_string (cfg, "pnxmms", "preset", &preset);
+
   bmp_cfg_db_close (cfg);
 
   return;
@@ -447,6 +449,9 @@
   bmp_cfg_db_set_int (cfg, "pnxmms", "image_width", image_width);
   bmp_cfg_db_set_int (cfg, "pnxmms", "image_height", image_height);
 
+  if (preset)
+      bmp_cfg_db_set_string (cfg, "pnxmms", "preset", preset);
+
   bmp_cfg_db_close (cfg);
 }