diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-08 12:14:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-08 12:14:48 +0000 |
commit | 38c09297c0004d9d6b66947652c4da7649d3d41e (patch) | |
tree | 9a4dddc44a7c0c9d8d1998514f321b933b3b4e20 /plugins/PluginUpdater/src | |
parent | e381e98b6c1435da4cfc68cec14e67171441fb68 (diff) |
filter for icons
git-svn-id: http://svn.miranda-ng.org/main/trunk@1400 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-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);
|