Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorvald Natvig <slicer@users.sourceforge.net>2010-02-25 17:18:35 +0300
committerThorvald Natvig <slicer@users.sourceforge.net>2010-02-25 17:18:35 +0300
commitf2c191daf8f5c7f5fa3b64ff9a6da5aaf108a85e (patch)
tree99427bb7e07391bd4e166781357d84e37c7c908f /plugins/sto
parent63adacd5fcee46c3b5294aade232bcd46e50cab4 (diff)
The grand plugin multiregexp experiment
Diffstat (limited to 'plugins/sto')
-rw-r--r--plugins/sto/sto.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/plugins/sto/sto.cpp b/plugins/sto/sto.cpp
index d6cb0eff2..601e7803d 100644
--- a/plugins/sto/sto.cpp
+++ b/plugins/sto/sto.cpp
@@ -85,7 +85,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) {
identptr = contextptr = posptr = NULL;
- if (! initialize(L"GameClient.exe"))
+ if (! initialize(pids, L"GameClient.exe"))
return false;
char version[17];
@@ -114,18 +114,32 @@ static const std::wstring longdesc() {
static std::wstring description(L"Star Trek Online ST.0.20100208b.4");
static std::wstring shortname(L"Star Trek Online");
+static int trylock1() {
+ return trylock(std::multimap<std::wstring, unsigned long long int>());
+}
+
static MumblePlugin stoplug = {
MUMBLE_PLUGIN_MAGIC,
description,
shortname,
NULL,
NULL,
- trylock,
+ trylock1,
generic_unlock,
longdesc,
fetch
};
+static MumblePlugin2 stoplug2 = {
+ MUMBLE_PLUGIN_MAGIC_2,
+ MUMBLE_PLUGIN_VERSION,
+ trylock
+};
+
extern "C" __declspec(dllexport) MumblePlugin *getMumblePlugin() {
return &stoplug;
}
+
+extern "C" __declspec(dllexport) MumblePlugin2 *getMumblePlugin2() {
+ return &stoplug2;
+}