summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-06-28 16:30:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-06-28 16:30:47 +0000
commit8d11b4da82fdd800bd0d8b2471ba71f5e8593470 (patch)
tree4fe65fa7cbb1c7b13db0c796f80f7f657ebf2b29 /plugins/PluginUpdater/src
parente32f708ef6cb3b5e0e79d136d7f15d86222118a5 (diff)
- options disabled not to allow a user switch to a trunk
- default URL changed to http://miranda-ng.org/distr/deprecated/0.94.9/ git-svn-id: http://svn.miranda-ng.org/main/trunk@9600 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r--plugins/PluginUpdater/src/Options.cpp2
-rw-r--r--plugins/PluginUpdater/src/PluginUpdater.cpp6
-rw-r--r--plugins/PluginUpdater/src/Utils.cpp16
-rw-r--r--plugins/PluginUpdater/src/Version.h2
4 files changed, 15 insertions, 11 deletions
diff --git a/plugins/PluginUpdater/src/Options.cpp b/plugins/PluginUpdater/src/Options.cpp
index aae9592534..a0375bef2d 100644
--- a/plugins/PluginUpdater/src/Options.cpp
+++ b/plugins/PluginUpdater/src/Options.cpp
@@ -19,8 +19,6 @@ Boston, MA 02111-1307, USA.
#include "common.h"
-PlugOptions opts;
-
INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) {
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp
index f8d46d36cc..ef4d048d93 100644
--- a/plugins/PluginUpdater/src/PluginUpdater.cpp
+++ b/plugins/PluginUpdater/src/PluginUpdater.cpp
@@ -19,6 +19,8 @@ Boston, MA 02111-1307, USA.
#include "common.h"
+PlugOptions opts;
+
#if MIRANDA_VER < 0x0A00
#define MIID_UPDATER {0x4a47b19b, 0xde5a, 0x4436, { 0xab, 0x4b, 0xe1, 0xf3, 0xa0, 0x22, 0x5d, 0xe7}}
@@ -124,6 +126,8 @@ extern "C" __declspec(dllexport) int Load(void)
mi.pszName = LPGEN("Available components list");
mi.pszService = MODNAME"/ShowList";
Menu_AddMainMenuItem(&mi);
+
+ HookEvent(ME_OPT_INITIALISE, OptInit);
#endif
// Add hotkey
@@ -136,8 +140,6 @@ extern "C" __declspec(dllexport) int Load(void)
hkd.lParam = FALSE;
Hotkey_Register(&hkd);
- // Add options hook
- HookEvent(ME_OPT_INITIALISE, OptInit);
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
HookEvent(ME_SYSTEM_PRESHUTDOWN, OnPreShutdown);
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp
index 1c1f4c2ca5..5c6452f4b0 100644
--- a/plugins/PluginUpdater/src/Utils.cpp
+++ b/plugins/PluginUpdater/src/Utils.cpp
@@ -180,12 +180,16 @@ int Get_CRC(unsigned char* buffer, ULONG bufsize)
TCHAR* GetDefaultUrl()
{
- TCHAR *result = db_get_tsa(NULL, MODNAME, "UpdateURL");
- if (result == NULL) { // URL is not set
- db_set_ts(NULL, MODNAME, "UpdateURL", _T(DEFAULT_UPDATE_URL));
- result = mir_tstrdup( _T(DEFAULT_UPDATE_URL));
- }
- return result;
+ #if MIRANDA_VER < 0x0A00
+ return mir_tstrdup(_T("http://miranda-ng.org/distr/deprecated/0.94.9"));
+ #else
+ TCHAR *result = db_get_tsa(NULL, MODNAME, "UpdateURL");
+ if (result == NULL) { // URL is not set
+ db_set_ts(NULL, MODNAME, "UpdateURL", _T(DEFAULT_UPDATE_URL));
+ result = mir_tstrdup( _T(DEFAULT_UPDATE_URL));
+ }
+ return result;
+ #endif
}
int CompareHashes(const ServListEntry *p1, const ServListEntry *p2)
diff --git a/plugins/PluginUpdater/src/Version.h b/plugins/PluginUpdater/src/Version.h
index bdadc348c3..f12beeebe3 100644
--- a/plugins/PluginUpdater/src/Version.h
+++ b/plugins/PluginUpdater/src/Version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 2
-#define __BUILD_NUM 0
+#define __BUILD_NUM 1
#include <stdver.h>