diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-14 13:10:32 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-14 13:10:32 +0100 |
commit | 43a4605eab32f83337f55c5a90bfc7f2fb84696c (patch) | |
tree | 584adda353dca785f6933ee9fe47c2ed5e4ce3f3 /vdr.c | |
parent | fbb4283bba26264e73c2d4f76d1dfe0baa4098e7 (diff) | |
download | vdr-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.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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()); |