diff options
author | louis <louis.braun@gmx.de> | 2013-07-09 00:17:42 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-07-09 00:17:42 +0200 |
commit | 2a7a011055a44516ec981e525776394a8c04dcfe (patch) | |
tree | 55c9828c7b619622ec36da3f4b41318ed6c85ae0 /tvguide.c | |
parent | 6da4b610d98cafe7c20555c926359d7f89347c76 (diff) | |
download | vdr-plugin-tvguide-2a7a011055a44516ec981e525776394a8c04dcfe.tar.gz vdr-plugin-tvguide-2a7a011055a44516ec981e525776394a8c04dcfe.tar.bz2 |
Version 0.0.6
Diffstat (limited to 'tvguide.c')
-rw-r--r-- | tvguide.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -11,6 +11,7 @@ #include <vdr/osd.h> #include <vdr/plugin.h> #include <vdr/device.h> +#include <vdr/menu.h> #include "tvguideosd.c" @@ -20,7 +21,7 @@ -static const char *VERSION = "0.0.5"; +static const char *VERSION = "0.0.6"; static const char *DESCRIPTION = "A fancy 2d EPG Viewer"; static const char *MAINMENUENTRY = "Tvguide"; @@ -28,6 +29,7 @@ class cPluginTvguide : public cPlugin { private: bool logoPathSet; bool imagesPathSet; + bool iconsPathSet; public: cPluginTvguide(void); virtual ~cPluginTvguide(); @@ -58,6 +60,7 @@ cPluginTvguide::cPluginTvguide(void) // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT! logoPathSet = false; imagesPathSet = false; + iconsPathSet = false; } cPluginTvguide::~cPluginTvguide() @@ -124,6 +127,13 @@ bool cPluginTvguide::Start(void) tvguideConfig.SetImagesPath(path); logoPathSet = true; } + + if (!iconsPathSet) { + cString path = cString::sprintf("%s/icons/", cPlugin::ConfigDirectory(PLUGIN_NAME_I18N)); + tvguideConfig.SetIconsPath(path); + iconsPathSet = true; + } + return true; } |