diff options
author | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-02-25 17:18:35 +0300 |
---|---|---|
committer | Thorvald Natvig <slicer@users.sourceforge.net> | 2010-02-25 17:18:35 +0300 |
commit | f2c191daf8f5c7f5fa3b64ff9a6da5aaf108a85e (patch) | |
tree | 99427bb7e07391bd4e166781357d84e37c7c908f /plugins/lotro | |
parent | 63adacd5fcee46c3b5294aade232bcd46e50cab4 (diff) |
The grand plugin multiregexp experiment
Diffstat (limited to 'plugins/lotro')
-rw-r--r-- | plugins/lotro/lotro.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/plugins/lotro/lotro.cpp b/plugins/lotro/lotro.cpp index cd5b65552..31c716106 100644 --- a/plugins/lotro/lotro.cpp +++ b/plugins/lotro/lotro.cpp @@ -118,7 +118,7 @@ static int fetch(float *avatar_pos, float *avatar_front, float *avatar_top, floa } static int trylock(const std::multimap<std::wstring, unsigned long long int> &pids) { - if (!initialize(L"lotroclient.exe")) + if (! initialize(pids, L"lotroclient.exe")) return false; float apos[3], afront[3], atop[3], cpos[3], cfront[3], ctop[3]; @@ -140,18 +140,32 @@ static const std::wstring longdesc() { static std::wstring description(L"Lord of the Rings Online (EU), Vol II Book 9 Patch1"); static std::wstring shortname(L"Lord of the Rings Online"); +static int trylock1() { + return trylock(std::multimap<std::wstring, unsigned long long int>()); +} + static MumblePlugin lotroplug = { MUMBLE_PLUGIN_MAGIC, description, shortname, NULL, NULL, - trylock, + trylock1, generic_unlock, longdesc, fetch }; +static MumblePlugin2 lotroplug2 = { + MUMBLE_PLUGIN_MAGIC_2, + MUMBLE_PLUGIN_VERSION, + trylock +}; + extern "C" __declspec(dllexport) MumblePlugin *getMumblePlugin() { return &lotroplug; } + +extern "C" __declspec(dllexport) MumblePlugin2 *getMumblePlugin2() { + return &lotroplug2; +} |