diff options
author | George Hazan <ghazan@miranda.im> | 2021-04-11 12:19:07 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-04-11 12:19:07 +0300 |
commit | dafd9a18a4b1573ff536e3db851e9e40a345c201 (patch) | |
tree | 7f6ead2892b30e109538eca380fde392240700ad /plugins/PackUpdater/Src | |
parent | eb37be750853ee7e21406100e90b96469d501d36 (diff) |
custom references to "PluginDisable" module removed
Diffstat (limited to 'plugins/PackUpdater/Src')
-rw-r--r-- | plugins/PackUpdater/Src/Utils.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/PackUpdater/Src/Utils.cpp b/plugins/PackUpdater/Src/Utils.cpp index e2a057fb1f..33c28584f1 100644 --- a/plugins/PackUpdater/Src/Utils.cpp +++ b/plugins/PackUpdater/Src/Utils.cpp @@ -159,14 +159,6 @@ BOOL Exists(LPCTSTR strName) return GetFileAttributes(strName) != INVALID_FILE_ATTRIBUTES;
}
-BOOL IsPluginDisabled(wchar_t* filename)
-{
- char* fname = mir_u2a(filename);
- int res = db_get_b(0, "PluginDisable", fname, 0);
- mir_free(fname);
- return res;
-}
-
size_t getVer(const wchar_t* verStr)
{
int v1 = 0, v2 = 0, v3 = 0, v4 = 0;
@@ -267,7 +259,7 @@ static void CheckUpdates(void *) mir_snwprintf(tszBuff, L"Plugins\\%s\\%s", Files[CurrentFile].tszAdvFolder, Files[CurrentFile].File.tszDiskPath);
wchar_t pluginFolderName[MAX_PATH];
PathToAbsoluteW(tszBuff, pluginFolderName);
- if (!Files[CurrentFile].Force && (IsPluginDisabled(Files[CurrentFile].File.tszDiskPath) || !Exists(pluginFolderName))) //check if plugin disabled or not exists
+ if (!Files[CurrentFile].Force && (IsPluginOnWhiteList(_T2A(Files[CurrentFile].File.tszDiskPath)) || !Exists(pluginFolderName))) //check if plugin disabled or not exists
continue;
}
// Compare versions
|