Commit Graph

39 Commits

Author SHA1 Message Date
Robert Adam
d100ff1467 MAINT: Update copyright to 2022 2022-01-04 20:17:33 +01:00
Robert Adam
d816fb5688 BUILD(windows): Fix debug build
When performing a debug build, the "deadlock plugin" will be included
in the build, which uses the thread functionality of the std. However,
during compiling there would be an error about a symbol in thread.hpp
not being found (_beginthreadex). As it turns out, this was due to us
having a header file called Process.h, which would shadow the windows-
specific header file defining the mentioned symbol.

Therefore, in this commit we rename the Process base class to
AbstractProcess and rename the files accordingly, fixing that error.

See also: https://stackoverflow.com/q/27230258
2021-12-23 21:47:54 +01:00
Robert Adam
9b50fd7a12 BUILD(cmake): Reorganize how plugins are handled
Instead of excluding all plugins but the link one on OSes other than
Windows and Linux, the new approach allows for a more granular control
by introducing a list of plugins that is supported on the different
platforms.

This replaces the globbing approach which means that new plugins have
now to be included in this list explicitly.

The advantage of this is that this allows for a much greater flexibility
for handling plugins on different OS.

Furthermore the plugin's own directory is no longer added to the
include-path by default. If a plugin wishes to do this, it should do so
explicitly. This should help make the plugins easier to move around in
the future.
2021-06-16 19:24:25 +02:00
jisopo
f9ded8415c BUILD(windows): Fix missing include
some of overlay source files such as: amongus, cod2 and se uses
std::unique_ptr
which requires include <memory>
2021-06-01 08:13:16 +02:00
Robert Adam
27dbee8e62 FEAT(client): Plugin framework
This commit introduces a new plugin framework into the codebase of the
Mumble client. Note that "plugin" here really refers to a (more or less)
general purpose plugin and is therefore not to be confused with the
previously available positional data plugins (only responsible for
fetching positional data from a running game and passing that to
Mumble).

The plugin interface is written in C, removing the compiler-dependence
the old "plugins" had. Instead plugins can now be written in an
arbitrary language as long as that language is capable of being compiled
into a shared library and also being capable of being C-compatible.

As already indicated a plugin is essentially a shared library that
provides certain functions that allow Mumble to interface with it.

Inside Mumble the so-called PluginManager is responsible for managing
the plugins and relaying events to the respective callbacks. Plugins
themselves can also interact with Mumble on their own initiative by
using the provided API functions.

Fixes #2455
Fixes #2148
Fixes #1594
Fixes #2051
Fixes #3742
Fixes #4575
Fixes #4751
2021-04-16 20:15:44 +02:00
Davide Beatrici
ea69658bba FIX(positional-audio): Fix and revamp Call of Duty 2 plugin
It was not working because the camera position values were all set to 0.

This commit fixes the issue while also revamping the code.
2021-03-17 08:07:27 +01:00
Robert Adam
59ae429972 MAINT: Update copyright notice to 2021
This was done by running scripts/updateLicenseHeaders.py and then
manually editing the LICENSE file.
2021-03-02 10:15:01 +01:00
Robert
af7dac72f4 FORMAT: Run clang-format 10 on all C/CXX source-files 2020-09-11 18:29:33 +02:00
Popkornium18
691c38736a REFAC(plugins): replace NULL with nullptr
This changes all occurances of NULL in the plugins source
dir to nullptr. Additionally explicit comparisons with NULL were
removed.
2020-06-28 19:04:27 +02:00
Davide Beatrici
4e67a2fafb Auto-update LICENSE.header in source files 2020-01-07 03:09:22 +01:00
Davide Beatrici
9875c59b7a plugins: use new header 2019-08-08 23:51:13 +02:00
Davide Beatrici
b427333257 Auto-update LICENSE.header in source files 2019-01-25 04:56:19 +01:00
Mikkel Krautz
f6ba3a52bf Auto-update LICENSE.header in source files. 2018-01-01 23:05:37 +01:00
davidebeatrici
2a51c7bff6 Accomplish changes in all the plugins 2017-11-19 21:48:55 +01:00
Mikkel Krautz
91ebb8b0b5 Update tree copyrights to 2017. 2017-01-08 21:05:57 +01:00
Jan Klass
e2ad9c05f0 Fix 2643: Revert "Merge PR #2611: plugins: use the short form of peekProc"
This reverts commit e9c558ffdb, reversing
changes made to ca2fd07b90.

This is a quick-fix for crashing PA plugins. The intended change is
still useful and planned to land later.
2016-11-17 12:59:45 +01:00
Davide Beatrici
921ee19e3a plugins: use the short form of peekProc
The short form of peekProc automatically uses the correct size for the target.
2016-10-31 14:24:25 +01:00
Mikkel Krautz
b19840cd10 plugins: use MUMBLE_PLUGIN_EXPORT instead of __declspec(dllexport). 2016-08-13 22:59:30 +02:00
davidebeatrici
88797fa324 mumble/plugins: Rename Win32 headers 2016-08-11 23:31:15 +02:00
davidebeatrici
ed8748dc07 plugins: update memory addresses retrieval to use procptr32_t/procptr64_t. 2016-06-23 23:32:37 +02:00
Mikkel Krautz
313be4b66b plugins: update to use LICENSE.header. 2016-05-10 22:42:04 +02:00
Benjamin Jemlich
f90c6e35ab More plugin touching 2012-05-01 11:12:43 +02:00
Thorvald Natvig
f3437a6ba7 Update copyright year ranges of dev team. 2011-03-18 05:52:51 +01:00
Thorvald Natvig
e1b24d25f0 Clean up a few compiler warnings. 2011-01-20 18:25:15 -08:00
Thorvald Natvig
f2c191daf8 The grand plugin multiregexp experiment 2010-02-25 15:18:35 +01:00
Thorvald Natvig
c263aa0a7d Update plugins to new trylock signature 2010-02-25 13:19:47 +01:00
Stefan Hacker
070692d6fb Small style fixes in some plugins 2010-02-08 22:35:22 +01:00
Thorvald Natvig
e207ef60c4 Zero camera positions in plugins' fetch() 2010-02-08 17:11:59 +01:00
Tuck Therebelos
58081c648c Update licenses; add UT3, 2004, 1942 plugins; update some Source plugins 2010-01-07 05:56:08 -06:00
Thorvald Natvig
c09186a2ab Indent, changelog and submodule update 2009-05-01 17:01:15 +02:00
Tuck Therebelos
6c760f08ca Need avatar_ for top 2009-04-29 15:22:49 -05:00
Tuck Therebelos
5c4d8c5513 Add back dummy top vector to Quake based games 2009-04-29 15:09:44 -05:00
Thorvald Natvig
1c0d7bbfd3 Indent, changelog and submodule update 2009-04-27 22:59:47 +02:00
Thorvald Natvig
f91647345b Avoid constref initializers of std::wstring inside const structs 2009-04-27 00:18:19 +02:00
Tuck Therebelos
f594ce8ee4 Plugins update for 1.2 PA; Cod5 and L4D patch update 2009-04-24 16:36:03 -05:00
Stefan H
f308c58b1a Fixed possible bug in several plugins and did some minor style tweaks
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1566 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-02-21 00:48:45 +00:00
Thorvald Natvig
e3f271b553 Indenting update
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1458 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-19 23:09:19 +00:00
Thorvald Natvig
ec7f8cb317 Indenting update
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1382 05730e5d-ab1b-0410-a4ac-84af385074fa
2009-01-05 15:15:36 +00:00
Thorvald Natvig
9ae7b34913 Patch #2183224: Call of Duty 2 positional audio [dd0t]
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@1334 05730e5d-ab1b-0410-a4ac-84af385074fa
2008-10-22 21:04:29 +00:00