diff options
Diffstat (limited to 'updater/updater.cpp')
-rw-r--r-- | updater/updater.cpp | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp index 3ab7eea..855659d 100644 --- a/updater/updater.cpp +++ b/updater/updater.cpp @@ -13,7 +13,6 @@ UTF8_INTERFACE utfi; LIST_INTERFACE li;
bool is_idle = false;
-bool unicode_system;
//#define TESTING // defined here to reduce build time blowout caused by changing common.h
PLUGININFOEX pluginInfo={
@@ -141,7 +140,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { update.szBetaChangelogURL = "https://server.scottellis.com.au/wsvn/mim_plugs/updater/?op=log&rev=0&sc=0&isdir=1";
- if(unicode_system) {
+#ifdef _UNICODE
#ifdef REGISTER_AUTO
update.szUpdateURL = UPDATER_AUTOREGISTER;
@@ -156,7 +155,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { update.szBetaVersionURL = BETA_HOST_URL_PREFIX "/ver_updater_unicode.html";
update.pbBetaVersionPrefix = (BYTE *)"Updater (Unicode) version ";
update.cpbBetaVersionPrefix = (int)strlen((char *)update.pbBetaVersionPrefix);
- } else {
+#else
#ifdef REGISTER_AUTO
update.szUpdateURL = UPDATER_AUTOREGISTER;
@@ -175,7 +174,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { update.szBetaVersionURL = BETA_HOST_URL_PREFIX "/ver_updater.html";
update.pbBetaVersionPrefix = (BYTE *)"Updater version ";
update.cpbBetaVersionPrefix = (int)strlen((char *)update.pbBetaVersionPrefix);
- }
+#endif
CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
#else // !REGISTER_BETA
@@ -236,30 +235,6 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) {
pluginLink = link;
- char szVer[128];
- unicode_system = (CallService(MS_SYSTEM_GETVERSIONTEXT, (WPARAM)sizeof(szVer), (LPARAM)szVer) == 0 && strstr(szVer, "Unicode"));
- /*
-#ifdef _UNICODE
- if(!unicode_system) {
- TCHAR fp[256], *fn;
- GetModuleFileName(hInst, fp, 256);
- fn = _tcsrchr(fp, '\\');
- if(fn) fn++;
- MessageBox(0, TranslateT("You are using the wrong version of this plugin.\nPlease download the NON-UNICODE version.\nPlugin disabled."), fn, MB_OK);
- return 1;
- }
-#else
- if(unicode_system) {
- TCHAR fp[256], *fn;
- GetModuleFileName(hInst, fp, 256);
- fn = _tcsrchr(fp, '\\');
- if(fn) fn++;
- MessageBox(0, TranslateT("You are using the wrong version of this plugin.\nPlease download the UNICODE version.\nPlugin disabled."), fn, MB_OK);
- return 1;
- }
-#endif
- */
-
mir_getLI( &li );
mir_getMMI( &mmi );
mir_getUTFI( &utfi );
|