summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2016-01-31 16:32:41 +0100
committerlouis <louis.braun@gmx.de>2016-01-31 16:32:41 +0100
commita29e3cc0c664b38ef311c7fc3b8d5783b84323ed (patch)
treefd9947b17d8abe025f549c478efd2fffcc0986b4
parentc341448bbfb8d22c6af7f62c5edb2f54edde7333 (diff)
downloadvdr-plugin-skindesigner-a29e3cc0c664b38ef311c7fc3b8d5783b84323ed.tar.gz
vdr-plugin-skindesigner-a29e3cc0c664b38ef311c7fc3b8d5783b84323ed.tar.bz2
added svdrp command to delete image cache
-rw-r--r--skindesigner.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/skindesigner.c b/skindesigner.c
index c6049bb..68d94ef 100644
--- a/skindesigner.c
+++ b/skindesigner.c
@@ -198,6 +198,8 @@ const char **cPluginSkinDesigner::SVDRPHelpPages(void) {
static const char *HelpPages[] = {
"RELD\n"
" force reload of templates and caches",
+ "DLIC\n"
+ " delete image cache",
"SCIT\n"
" Set custom Integer Token key = value",
"SCST\n"
@@ -242,6 +244,13 @@ cString cPluginSkinDesigner::SVDRPCommand(const char *Command, const char *Optio
activeSkin->Reload();
ReplyCode = 250;
return "SKINDESIGNER reload of templates and caches forced.";
+ } else if (strcasecmp(Command, "DLIC") == 0) {
+ if (imgCache)
+ delete imgCache;
+ imgCache = new cImageCache();
+ imgCache->SetPathes();
+ ReplyCode = 250;
+ return "SKINDESIGNER Image Cache deleted.";
} else if (strcasecmp(Command, "LSTF") == 0) {
activeSkin->ListAvailableFonts();
ReplyCode = 250;