From 1485334c199bac70572ba14fce272afabebc4c04 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 7 Oct 2013 06:16:46 +0000 Subject: Xfire: version info added git-svn-id: http://svn.miranda-ng.org/main/trunk@6387 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/res/version.rc | 38 ++++++++++++++++++++++++++++++++ protocols/Xfire/src/main.cpp | 28 ++++++++++++----------- protocols/Xfire/src/version.h | 14 ++++++++++++ protocols/Xfire/xfire_10.vcxproj | 2 ++ protocols/Xfire/xfire_10.vcxproj.filters | 6 +++++ protocols/Xfire/xfire_11.vcxproj | 2 ++ protocols/Xfire/xfire_11.vcxproj.filters | 6 +++++ 7 files changed, 83 insertions(+), 13 deletions(-) create mode 100644 protocols/Xfire/res/version.rc create mode 100644 protocols/Xfire/src/version.h (limited to 'protocols/Xfire') diff --git a/protocols/Xfire/res/version.rc b/protocols/Xfire/res/version.rc new file mode 100644 index 0000000000..5bfbab4754 --- /dev/null +++ b/protocols/Xfire/res/version.rc @@ -0,0 +1,38 @@ +// Microsoft Visual C++ generated resource script. +// +#ifdef APSTUDIO_INVOKED +#error this file is not editable by Microsoft Visual C++ +#endif //APSTUDIO_INVOKED + +#include "afxres.h" +#include "..\src\version.h" + +VS_VERSION_INFO VERSIONINFO + FILEVERSION __FILEVERSION_STRING + PRODUCTVERSION __FILEVERSION_STRING + FILEFLAGSMASK 0x17L +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x4L + FILETYPE 0x0L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "000004b0" + BEGIN + VALUE "FileDescription", __DESCRIPTION + VALUE "InternalName", __PLUGIN_NAME + VALUE "LegalCopyright", __COPYRIGHT + VALUE "OriginalFilename", __FILENAME + VALUE "ProductName", __PLUGIN_NAME + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x0, 1200 + END +END diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp index b1249b8b69..9edf15f981 100644 --- a/protocols/Xfire/src/main.cpp +++ b/protocols/Xfire/src/main.cpp @@ -80,6 +80,7 @@ #include "Xfire_voicechat.h" #include "variables.h" +#include "version.h" #include #include @@ -127,17 +128,18 @@ extern LPtsrGetServerInfo tsrGetServerInfo; HANDLE hGameDetection = CreateEvent(NULL,FALSE,FALSE,NULL); HANDLE hConnectionClose = CreateEvent(NULL,TRUE,FALSE,NULL); -PLUGININFOEX pluginInfoEx={ - sizeof(PLUGININFOEX), - "Xfire protocol", - PLUGIN_MAKE_VERSION(0,1,8,4), - "Xfire protocol support for Miranda NG.", - "dufte", - "dufte@justmail.de", - "(c) 2012 Xfirelib by Herbert Poul, Xfire Miranda protocol plugin by dufte", - "http://miranda-ng.org", - UNICODE_AWARE, - { 0x9b8e1735, 0x970d, 0x4ce0, { 0x93, 0xc, 0xa5, 0x61, 0x95, 0x6b, 0xdc, 0xa2 } } // {9B8E1735-970D-4ce0-930C-A561956BDCA2} +PLUGININFOEX pluginInfo = { + sizeof(PLUGININFOEX), + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, + UNICODE_AWARE, + // {9B8E1735-970D-4ce0-930C-A561956BDCA2} + {0x9b8e1735, 0x970d, 0x4ce0, {0x93, 0xc, 0xa5, 0x61, 0x95, 0x6b, 0xdc, 0xa2}} }; static IconItem icon = { LPGEN("Protocol icon"), "XFIRE_main", IDI_TM }; @@ -758,7 +760,7 @@ void XFireClient::sendmsg(char*usr,char*cmsg) { extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { - return &pluginInfoEx; + return &pluginInfo; } //===================================================== @@ -1055,7 +1057,7 @@ int ExtraImageApply(WPARAM wparam, LPARAM lparam) extern "C" __declspec(dllexport) int Load(void) { - mir_getLP(&pluginInfoEx); + mir_getLP(&pluginInfo); InitializeCriticalSection(&modeMsgsMutex); InitializeCriticalSection(&connectingMutex); diff --git a/protocols/Xfire/src/version.h b/protocols/Xfire/src/version.h new file mode 100644 index 0000000000..e46dd45ce1 --- /dev/null +++ b/protocols/Xfire/src/version.h @@ -0,0 +1,14 @@ +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 1 +#define __RELEASE_NUM 8 +#define __BUILD_NUM 4 + +#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM + +#define __PLUGIN_NAME "Xfire protocol" +#define __FILENAME "Xfire.dll" +#define __DESCRIPTION "Xfire protocol support for Miranda NG." +#define __AUTHOR "dufte" +#define __AUTHOREMAIL "dufte@justmail.de" +#define __AUTHORWEB "http://miranda-ng.org/p/XFire/" +#define __COPYRIGHT "(c) 2012 Xfirelib by Herbert Poul, Xfire Miranda protocol plugin by dufte" diff --git a/protocols/Xfire/xfire_10.vcxproj b/protocols/Xfire/xfire_10.vcxproj index 266a224686..3939b491f5 100644 --- a/protocols/Xfire/xfire_10.vcxproj +++ b/protocols/Xfire/xfire_10.vcxproj @@ -199,6 +199,7 @@ + @@ -289,6 +290,7 @@ + diff --git a/protocols/Xfire/xfire_10.vcxproj.filters b/protocols/Xfire/xfire_10.vcxproj.filters index 1acfc098e7..376eb184ff 100644 --- a/protocols/Xfire/xfire_10.vcxproj.filters +++ b/protocols/Xfire/xfire_10.vcxproj.filters @@ -539,10 +539,16 @@ XFirelib\headers + + XFirelib\headers + Resources + + Resources + \ No newline at end of file diff --git a/protocols/Xfire/xfire_11.vcxproj b/protocols/Xfire/xfire_11.vcxproj index c423b007d0..fbac881601 100644 --- a/protocols/Xfire/xfire_11.vcxproj +++ b/protocols/Xfire/xfire_11.vcxproj @@ -204,6 +204,7 @@ + @@ -294,6 +295,7 @@ + diff --git a/protocols/Xfire/xfire_11.vcxproj.filters b/protocols/Xfire/xfire_11.vcxproj.filters index 1acfc098e7..376eb184ff 100644 --- a/protocols/Xfire/xfire_11.vcxproj.filters +++ b/protocols/Xfire/xfire_11.vcxproj.filters @@ -539,10 +539,16 @@ XFirelib\headers + + XFirelib\headers + Resources + + Resources + \ No newline at end of file -- cgit v1.2.3