summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-14 13:10:32 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-14 13:10:32 +0100
commit43a4605eab32f83337f55c5a90bfc7f2fb84696c (patch)
tree584adda353dca785f6933ee9fe47c2ed5e4ce3f3 /vdr.c
parentfbb4283bba26264e73c2d4f76d1dfe0baa4098e7 (diff)
downloadvdr-43a4605eab32f83337f55c5a90bfc7f2fb84696c.tar.gz
vdr-43a4605eab32f83337f55c5a90bfc7f2fb84696c.tar.bz2
Making sure at least the default skin is available at program start
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/vdr.c b/vdr.c
index 5c823724..2089d961 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.198 2005/01/06 14:36:40 kls Exp $
+ * $Id: vdr.c 1.199 2005/01/09 16:35:36 kls Exp $
*/
#include <getopt.h>
@@ -460,15 +460,20 @@ int main(int argc, char *argv[])
Interface = new cInterface(SVDRPport);
+ // Default skins:
+
+ new cSkinClassic;
+ new cSkinSTTNG;
+ Skins.SetCurrent(Setup.OSDSkin);
+ cThemes::Load(Skins.Current()->Name(), Setup.OSDTheme, Skins.Current()->Theme());
+
// Start plugins:
if (!PluginManager.StartPlugins())
EXIT(2);
- // Skins:
+ // Set skin and theme in case they're implemented by a plugin:
- new cSkinClassic;
- new cSkinSTTNG;
Skins.SetCurrent(Setup.OSDSkin);
cThemes::Load(Skins.Current()->Name(), Setup.OSDTheme, Skins.Current()->Theme());