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

View File

@ -198,6 +198,8 @@ const char **cPluginSkinDesigner::SVDRPHelpPages(void) {
static const char *HelpPages[] = { static const char *HelpPages[] = {
"RELD\n" "RELD\n"
" force reload of templates and caches", " force reload of templates and caches",
"DLIC\n"
" delete image cache",
"SCIT\n" "SCIT\n"
" Set custom Integer Token key = value", " Set custom Integer Token key = value",
"SCST\n" "SCST\n"
@ -242,6 +244,13 @@ cString cPluginSkinDesigner::SVDRPCommand(const char *Command, const char *Optio
activeSkin->Reload(); activeSkin->Reload();
ReplyCode = 250; ReplyCode = 250;
return "SKINDESIGNER reload of templates and caches forced."; 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) { } else if (strcasecmp(Command, "LSTF") == 0) {
activeSkin->ListAvailableFonts(); activeSkin->ListAvailableFonts();
ReplyCode = 250; ReplyCode = 250;