Mercurial > audlegacy-plugins
changeset 2636:1aa52f6d547a
save active skin path
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 23 May 2008 11:56:03 +0200 |
parents | b990e7eb0c25 |
children | 7156fc000796 |
files | src/skins/skins_cfg.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/skins/skins_cfg.c Fri May 23 11:50:18 2008 +0200 +++ b/src/skins/skins_cfg.c Fri May 23 11:56:03 2008 +0200 @@ -195,6 +195,13 @@ void skins_cfg_save() { mcs_handle_t *cfgfile = aud_cfg_db_open(); + if (aud_active_skin != NULL) { + if (aud_active_skin->path) + aud_cfg_db_set_string(cfgfile, "skins", "skin", aud_active_skin->path); + else + aud_cfg_db_unset_key(cfgfile, "skins", "skin"); + } + int i; for (i = 0; i < ncfgbent; ++i)