summaryrefslogtreecommitdiff
path: root/protocols/Xfire
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-10-07 06:16:46 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-10-07 06:16:46 +0000
commit1485334c199bac70572ba14fce272afabebc4c04 (patch)
treec5501525fb69a8e0dbf4fb78b2b970a993cc613a /protocols/Xfire
parent123c61c460115c13234f3f072f83d2a6e9ed7011 (diff)
Xfire: version info added
git-svn-id: http://svn.miranda-ng.org/main/trunk@6387 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire')
-rw-r--r--protocols/Xfire/res/version.rc38
-rw-r--r--protocols/Xfire/src/main.cpp28
-rw-r--r--protocols/Xfire/src/version.h14
-rw-r--r--protocols/Xfire/xfire_10.vcxproj2
-rw-r--r--protocols/Xfire/xfire_10.vcxproj.filters6
-rw-r--r--protocols/Xfire/xfire_11.vcxproj2
-rw-r--r--protocols/Xfire/xfire_11.vcxproj.filters6
7 files changed, 83 insertions, 13 deletions
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 <stdexcept>
#include <sstream>
@@ -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 @@
</ItemDefinitionGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc" />
+ <ResourceCompile Include="res\version.rc" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\Xfire_avatar_loader.cpp" />
@@ -289,6 +290,7 @@
<ClCompile Include="src\xfireutils.cpp" />
</ItemGroup>
<ItemGroup>
+ <ClInclude Include="src\version.h" />
<ClInclude Include="src\Xfire_avatar_loader.h" />
<ClInclude Include="src\Xfire_base.h" />
<ClInclude Include="src\Xfire_game.h" />
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 @@
<ClInclude Include="src\xfireutils.h">
<Filter>XFirelib\headers</Filter>
</ClInclude>
+ <ClInclude Include="src\version.h">
+ <Filter>XFirelib\headers</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc">
<Filter>Resources</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\version.rc">
+ <Filter>Resources</Filter>
+ </ResourceCompile>
</ItemGroup>
</Project> \ 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 @@
</ItemDefinitionGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc" />
+ <ResourceCompile Include="res\version.rc" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\Xfire_avatar_loader.cpp" />
@@ -294,6 +295,7 @@
<ClCompile Include="src\xfireutils.cpp" />
</ItemGroup>
<ItemGroup>
+ <ClInclude Include="src\version.h" />
<ClInclude Include="src\Xfire_avatar_loader.h" />
<ClInclude Include="src\Xfire_base.h" />
<ClInclude Include="src\Xfire_game.h" />
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 @@
<ClInclude Include="src\xfireutils.h">
<Filter>XFirelib\headers</Filter>
</ClInclude>
+ <ClInclude Include="src\version.h">
+ <Filter>XFirelib\headers</Filter>
+ </ClInclude>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\resource.rc">
<Filter>Resources</Filter>
</ResourceCompile>
+ <ResourceCompile Include="res\version.rc">
+ <Filter>Resources</Filter>
+ </ResourceCompile>
</ItemGroup>
</Project> \ No newline at end of file