added svdrp command to delete image cache

This commit is contained in:
louis 2016-01-31 16:32:41 +01:00
parent c341448bbf
commit a29e3cc0c6
1 changed files with 9 additions and 0 deletions

View File

@ -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;