diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-08-13 20:54:08 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-08-13 20:54:08 +0000 |
commit | 8c32170e2712fe88671cad08a392a0872684ad6c (patch) | |
tree | f5f02aab3f48b83c2d31d504b526f349b9925f0e /plugins/PluginUpdater/src/Events.cpp | |
parent | 1ca35422a252e1b254d6a4823717d39f7988514f (diff) |
PluginUpdater: ability to download files via AccosMgr
git-svn-id: http://svn.miranda-ng.org/main/trunk@14945 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Events.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Events.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/Events.cpp b/plugins/PluginUpdater/src/Events.cpp index f97d384bf5..6781bc4a88 100644 --- a/plugins/PluginUpdater/src/Events.cpp +++ b/plugins/PluginUpdater/src/Events.cpp @@ -53,6 +53,14 @@ int ModulesLoaded(WPARAM, LPARAM) else
lstrcpyn(tszRoot, VARST( _T("%miranda_path%\\" DEFAULT_UPDATES_FOLDER)), _countof(tszRoot));
+#if MIRANDA_VER >= 0x0A00
+ if (ServiceExists(MS_ASSOCMGR_ADDNEWURLTYPE))
+ {
+ CreateServiceFunction(MODNAME "/ParseUri", ParseUriService);
+ AssocMgr_AddNewUrlTypeT("mirpu:", TranslateT("Plugin updater URI scheme"), hInst, IDI_PLGLIST, MODNAME "/ParseUri", 0);
+ }
+#endif
+
int iRestartCount = db_get_b(NULL, MODNAME, DB_SETTING_RESTART_COUNT, 2);
if (iRestartCount > 0)
db_set_b(NULL, MODNAME, DB_SETTING_RESTART_COUNT, iRestartCount - 1);
|