diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-01-18 11:06:51 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-01-18 11:06:51 +0000 |
commit | e4c3968458eeb254d5877f10b3ea81743e06bd98 (patch) | |
tree | e1478da2611f5a391781ac76daaff777c2ce25dc | |
parent | 6e01fcb23bb5063be0b0b2cc2df54f1474d44993 (diff) |
RPS: adoption fixes - now it works in NG
git-svn-id: http://svn.miranda-ng.org/main/trunk@7711 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/!NotAdopted/rps/rps.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/plugins/!NotAdopted/rps/rps.cpp b/plugins/!NotAdopted/rps/rps.cpp index bbf6d794d8..83f9c47ea2 100644 --- a/plugins/!NotAdopted/rps/rps.cpp +++ b/plugins/!NotAdopted/rps/rps.cpp @@ -61,9 +61,10 @@ PLUGININFOEX pluginInfo={ "Ricardo Pescuma Domenecci",
"",
"© 2007-2009 Ricardo Pescuma Domenecci",
- "http://pescuma.org/miranda/rps",
- 0, //not transient
- { 0x60e94b84, 0xa799, 0x4021, { 0x94, 0x49, 0x5b, 0x83, 0x8f, 0xc0, 0x6a, 0x7c } } // {60E94B84-A799-4021-9449-5B838FC06A7C}
+ "http://miranda-ng.org/p/RPS/",
+ UNICODE_AWARE,
+ // {60E94B84-A799-4021-9449-5B838FC06A7C}
+ { 0x60e94b84, 0xa799, 0x4021, { 0x94, 0x49, 0x5b, 0x83, 0x8f, 0xc0, 0x6a, 0x7c } }
};
@@ -95,21 +96,19 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) }
-__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- // Are we running under Unicode Windows version ?
- if ((GetVersion() & 0x80000000) == 0)
- pluginInfo.flags = 1; // UNICODE_AWARE
-
- pluginInfo.cbSize = sizeof(PLUGININFOEX);
return &pluginInfo;
}
extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_REMOVEPERSONALSETTINGS, MIID_LAST };
-int __declspec(dllexport) Load()
+
+extern "C" int __declspec(dllexport) Load()
{
+ mir_getLP(&pluginInfo);
+
CLISTMENUITEM mi;
char *strTmp;
@@ -158,7 +157,7 @@ int __declspec(dllexport) Load() }
-int __declspec(dllexport) Unload(void)
+extern "C" int __declspec(dllexport) Unload(void)
{
return 0;
}
|