summaryrefslogtreecommitdiff
path: root/protocols/Xfire/src/main.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2013-02-23 13:36:18 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2013-02-23 13:36:18 +0000
commit197abf300c77a2ca088d2cd22ea51e23dfc48983 (patch)
treea00cc83c19927b0d269b79e920339729acd7a879 /protocols/Xfire/src/main.cpp
parent23d8983fd3935d7d9d43bd14454eb6be55de3c40 (diff)
the XFire options redesign (fixes #229)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3723 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/main.cpp')
-rw-r--r--protocols/Xfire/src/main.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp
index dab7685ef9..e723338788 100644
--- a/protocols/Xfire/src/main.cpp
+++ b/protocols/Xfire/src/main.cpp
@@ -764,13 +764,11 @@ void XFireClient::sendmsg(char*usr,char*cmsg) {
//=====================================================
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfoEx;
}
-extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST};
-
//=====================================================
// Unloads plugin
//=====================================================
@@ -948,42 +946,42 @@ static int OnSystemModulesLoaded(WPARAM wParam,LPARAM lParam)
tr.tszTokenString = _T("xfiregame");
tr.parseFunction = Varxfiregame;
- tr.szHelpText = "XFire\tCurrent Game";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("Current Game");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("myxfiregame");
tr.parseFunction = Varmyxfiregame;
- tr.szHelpText = "XFire\tMy Current Game";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("My Current Game");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("xfireserverip");
tr.parseFunction = Varxfireserverip;
- tr.szHelpText = "XFire\tServerIP";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("ServerIP");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("myxfireserverip");
tr.parseFunction = Varmyxfireserverip;
- tr.szHelpText = "XFire\tMy Current ServerIP";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("My Current ServerIP");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("xfirevoice");
tr.parseFunction = Varxfirevoice;
- tr.szHelpText = "XFire\tVoice";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("Voice");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("myxfirevoice");
tr.parseFunction = Varmyxfirevoice;
- tr.szHelpText = "XFire\tMy Current Voice";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("My Current Voice");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("xfirevoiceip");
tr.parseFunction = Varxfirevoiceip;
- tr.szHelpText = "XFire\tVoice ServerIP";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("Voice ServerIP");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("myxfirevoiceip");
tr.parseFunction = Varmyxfirevoiceip;
- tr.szHelpText = "XFire\tMy Voice ServerIP";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("My Voice ServerIP");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
}
@@ -995,7 +993,7 @@ static int OnSystemModulesLoaded(WPARAM wParam,LPARAM lParam)
}
//sound einfügen
- SkinAddNewSoundEx(Translate("xfirebstartgame"),protocolname,Translate("Buddy start a game"));
+ SkinAddNewSoundEx("xfirebstartgame",protocolname,LPGEN("Buddy start a game"));
//hook für mbot einfügen, nur wenn mbot option aktiv
if(DBGetContactSettingByte(NULL,protocolname,"mbotsupport",0))
@@ -3147,7 +3145,7 @@ HANDLE handlingBuddys(BuddyListEntry *entry, int clan,char*group,BOOL dontscan)
//buddy vorher ein spielgestartet, wenn nicht sound spielen?
if(!DBGetContactSettingWord(hContact, protocolname, "GameId",0))
- SkinPlaySound( Translate( "xfirebstartgame" ) );
+ SkinPlaySound("xfirebstartgame");
DBWriteContactSettingWord(hContact, protocolname, "GameId", entry->game);
}