From 4bda82848c59f84e9b889d61763062ac3ea945df Mon Sep 17 00:00:00 2001 From: mrwastl Date: Thu, 13 Sep 2012 23:32:40 +0200 Subject: plugin.c: vdr >= 1.7.30 API-change: ConfigDirectory() -> ResourceDirectory(); init. patch contr. by Copperhead --- plugin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin.c b/plugin.c index deb8d81..c508ecb 100644 --- a/plugin.c +++ b/plugin.c @@ -8,7 +8,7 @@ * * (c) 2001-2004 Carsten Siebholz * (c) 2004-2010 Andreas Regel - * (c) 2010-2011 Wolfgang Astleitner + * (c) 2010-2012 Wolfgang Astleitner * * 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 { -- cgit v1.2.3