diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2012-09-13 23:32:40 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2012-09-13 23:32:40 +0200 |
commit | 4bda82848c59f84e9b889d61763062ac3ea945df (patch) | |
tree | 51d0a7097f8029c199166fb3e64534ac3af231fb | |
parent | f0c1141ba18d3bca4bea17841ee805d4b29a0c07 (diff) | |
download | vdr-plugin-graphlcd-4bda82848c59f84e9b889d61763062ac3ea945df.tar.gz vdr-plugin-graphlcd-4bda82848c59f84e9b889d61763062ac3ea945df.tar.bz2 |
plugin.c: vdr >= 1.7.30 API-change: ConfigDirectory() -> ResourceDirectory(); init. patch contr. by Copperhead
-rw-r--r-- | plugin.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -8,7 +8,7 @@ * * (c) 2001-2004 Carsten Siebholz <c.siebholz AT t-online.de> * (c) 2004-2010 Andreas Regel <andreas.regel AT powarman.de> - * (c) 2010-2011 Wolfgang Astleitner <mrwastl AT users sourceforge net> + * (c) 2010-2012 Wolfgang Astleitner <mrwastl AT users sourceforge net> * * Contributions: * CONNECT / DISCONNect, multi-display support: @@ -233,7 +233,11 @@ bool cPluginGraphLCD::Initialize() } while (pos2 != std::string::npos && index < GRAPHLCD_MAX_DISPLAYS); +#if APIVERSNUM < 10730 const char* tempConfigDir = ConfigDirectory(kPluginName); +#else + const char* tempConfigDir = ResourceDirectory(kPluginName); +#endif if (!tempConfigDir) { return false; } else { |