diff options
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/Scanner.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp index cdead4a0ca..f019ed1e60 100644 --- a/plugins/PluginUpdater/src/Scanner.cpp +++ b/plugins/PluginUpdater/src/Scanner.cpp @@ -153,8 +153,15 @@ static void CheckUpdates(void *) *p++ = 0;
_strlwr(str);
+ if ( !opts.bUpdateIcons && !strncmp(str, "icons\\", 6))
+ continue;
+
+ char* szName = strrchr(str, '\\');
+ if (szName == NULL)
+ szName = str;
+
_strlwr(p);
- hashes[str] = p;
+ hashes[szName] = p;
}
fclose(fp);
DeleteFile(tszTmpIni);
|