summaryrefslogtreecommitdiff
path: root/plugins/LangMan
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-05 15:39:50 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-05 15:39:50 +0000
commit357af8c5a3cf922818ee014a8f2b54a799917eea (patch)
tree2ed1b38f979d7b3991f9ca9a4103347f2fddfe62 /plugins/LangMan
parenta039e3378554f4f7b12a38722f72dfded2f4b277 (diff)
removed old PLUGININFO. plugin info cleanup starts
git-svn-id: http://svn.miranda-ng.org/main/trunk@312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/LangMan')
-rw-r--r--plugins/LangMan/main.cpp9
-rw-r--r--plugins/LangMan/options.cpp10
-rw-r--r--plugins/LangMan/version.h3
3 files changed, 5 insertions, 17 deletions
diff --git a/plugins/LangMan/main.cpp b/plugins/LangMan/main.cpp
index bcd3dba640..cc023a91fa 100644
--- a/plugins/LangMan/main.cpp
+++ b/plugins/LangMan/main.cpp
@@ -28,19 +28,13 @@ struct MM_INTERFACE mmi;
static HANDLE hHookModulesLoaded;
int hLangpack;
-static char szEmail[100] = PLUGIN_EMAIL;
-
static PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
"Language Pack Manager",
PLUGIN_VERSION,
-#if defined(_DEBUG)
- "Development build not intended for release. ("__DATE__")", /* autotranslated */
-#else
"Helps you manage Language Packs of different languages.", /* autotranslated */
-#endif
"H. Herkenrath",
- szEmail, /* @ will be set later */
+ "hrathh@users.sourceforge.net",
"© 2005-2007 H. Herkenrath",
PLUGIN_WEBSITE,
UNICODE_AWARE,
@@ -98,7 +92,6 @@ extern "C" {
__declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
- szEmail[PLUGIN_EMAIL_ATT_POS-1] = '@';
return &pluginInfo;
}
diff --git a/plugins/LangMan/options.cpp b/plugins/LangMan/options.cpp
index e0646c17fe..a6acdd9aea 100644
--- a/plugins/LangMan/options.cpp
+++ b/plugins/LangMan/options.cpp
@@ -177,8 +177,8 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox, const LANGPACK_INFO *pac
char buf[128];
TCHAR buf2[128];
DWORD mirandaVersion;
- PLUGININFO *pluginInfo;
- PLUGININFO *(__cdecl *MirandaPluginInfo)(DWORD);
+ PLUGININFOEX *pluginInfo;
+ PLUGININFOEX *(__cdecl *MirandaPluginInfo)(DWORD);
/* enum plugins */
if (!(pack->flags&LPF_DEFAULT) && GetModuleFileName(NULL, szDir, SIZEOF(szDir))) {
@@ -215,12 +215,10 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox, const LANGPACK_INFO *pac
if (hModule == NULL) continue;
}
/* plugin info */
- *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfo");
- if (MirandaPluginInfo == NULL) /* v0.8 support */
- *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfoEx");
+ *(PROC*)&MirandaPluginInfo = GetProcAddress(hModule, "MirandaPluginInfoEx");
if (MirandaPluginInfo!=NULL) { /* both structs have the same header */
pluginInfo = MirandaPluginInfo(mirandaVersion);
- if (pluginInfo!=NULL && pluginInfo->cbSize >= sizeof(PLUGININFO) && pluginInfo->shortName!=NULL) {
+ if (pluginInfo!=NULL && pluginInfo->cbSize >= sizeof(PLUGININFOEX) && pluginInfo->shortName!=NULL) {
lstrcpynA(buf, pluginInfo->shortName, sizeof(buf)); /* buffer safe */
CleanupPluginName(buf);
mir_sntprintf(buf2, SIZEOF(buf2), TranslateT("%hs (%s)"), buf, CharLower(wfd.cFileName));
diff --git a/plugins/LangMan/version.h b/plugins/LangMan/version.h
index 10ebf964ff..296ad97e87 100644
--- a/plugins/LangMan/version.h
+++ b/plugins/LangMan/version.h
@@ -32,9 +32,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define USERAGENT_VERSION "1.0.2.3"
#endif
-#define PLUGIN_EMAIL "hrathh users.sourceforge.net"
-#define PLUGIN_EMAIL_ATT_POS 7 /* position of the @-sign in the email adress above */
-
#if defined(_UNICODE)
#define PLUGIN_WEBSITE "http://addons.miranda-im.org/details.php?action = viewfile&id = 3003"
#else