Commit Graph

39 Commits

Author SHA1 Message Date
Robert Adam
330c356e71 MAINT: Remove copyright year from all copyright notices
Keeping these up-to-date is just super tedious and they don't really
fulfill any purpose these days.
2024-09-30 18:06:20 +02:00
Robert Adam
249d2c6298 MAINT: Update copyright headers to 2023 2023-01-08 15:54:35 +01:00
Orangestar
5a0a57edfe FIX(positional-audio): Fix Quake Live plugin
The "spectator" property address was slightly off, which prevented the
plugin from working at all. Additionally, the previous "map" address
only worked for listen servers.

I've corrected the first, and found a new, properly-working address for
the second.
2022-04-30 08:14:58 -05:00
Robert Adam
d100ff1467 MAINT: Update copyright to 2022 2022-01-04 20:17:33 +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
Robert Adam
923045ac60 FORMAT: Run clang-format 10 on all source files 2021-04-16 21:05:52 +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
Robert
56db3410c5 MAINT: Update copyright notice to 2021 (Part II)
Apparently the first commit (59ae429972)
did not include all files.

Furthermore the used script tended to produce funny results in certain
cases. This has been fixed and as a result thereof a few more changes
were made in this second run.
2021-04-09 15:41:49 +02: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
Robert Adam
34c602c85b BUILD(qmake): Remove
This commit removes all qmake-related build-files from the system. We
have now migrated to cmake and are no longer maintaining qmake anyways
and therefore there is no reason to keep it.

Removing it also clearly states to any potential user/programmer that
this project is no longer intended to be compiled with qmake.

Given that the .pri files no longer exist, the mumble-version.py script
had to be adapted to read the version from the CMakeLists.txt file
instead.

Furthermore a few of the submodules support cmake natively and therefore
we no longer need the src/buid-directory approach in order to build
them. The respective build dirs have been removed and the src-dirs have
been renamed.
2020-09-02 08:29:45 +02:00
Davide Beatrici
6b87ac6221 Plugins: add CMakeLists.txt files 2020-07-11 19:34:49 +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
5db12321ac plugins: link to user32 in common project (only on Windows) 2019-10-11 22:48:06 +02:00
Davide Beatrici
d40fbe8c3b plugins: replace BYTE with uint8_t 2019-10-11 21:13:48 +02: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
Jan Klass
23e763888f Fix assignment spacing in pro files
Consistently use single space before assignment operator.
2017-08-05 20:44:00 +02:00
Davide Beatrici
57e3d903ab plugins/ql: Fix spectator state offset
The previous offset was pointing at a value of "32" when in-game, which resulted in the plugin being disabled even when not spectating.
2017-03-14 21:32:18 +01:00
Mikkel Krautz
98349a1b33 Merge PR #2755: plugins: Fix visibility, warnings and errors when compiled with MinGW 2017-01-22 16:37:32 +01:00
Davide Beatrici
6096b74a1c
plugins: Fix MinGW compilation warnings and errors
warning: converting to non-pointer type 'procptr32_t {aka long unsigned int}' from NULL [-Wconversion-null]
ql\ql.cpp:87: warning: comparison is always true due to limited range of data type [-Wtype-limits]
sto\sto.cpp:11: error: 'numeric_limits' is not a member of 'std'

Not fixed:
sto\sto.cpp:55: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
2017-01-22 16:20:56 +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
davidebeatrici
90bcd40d39 plugins: Move NUL terminator to escape function 2016-10-23 21:32:08 +02: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
Davide Beatrici
c1b91cf645 plugins/ql: Native front and top vectors
Improvements:
Native front and top vectors

Fixes:
X/Z axis: Quake uses a left-handed, Z-up coordinate system. http://www.ritualistic.com/games/fakk2/editing/coordinatesystem.html
2016-06-24 00:27:15 +02:00
davidebeatrici
ed8748dc07 plugins: update memory addresses retrieval to use procptr32_t/procptr64_t. 2016-06-23 23:32:37 +02:00
Davide Beatrici
3e7b0bab4f plugins/ql: Plugin update for game's latest version
Added:
Context/Identity escape function
Map name in identity

Improved:
Horizontal and vertical view memory addresses changed, the new ones are updated in real-time
Team names

Fixed:
Avatar/Camera front and top vectors calculation
Wrong comment at line 140

Game version: 1069
http://steamcommunity.com/games/282440/announcements/detail/876328108049672536
2016-06-10 22:04:22 +02:00
Mikkel Krautz
313be4b66b plugins: update to use LICENSE.header. 2016-05-10 22:42:04 +02:00
Davide Beatrici
cb8cbd0411 Plugin update for latest version of Quake Live
Also updated the avatar position memory addresses for a better value refresh time.

Game Version: 1068
http://steamcommunity.com/games/282440/announcements/detail/889835423172957348
2016-04-30 17:09:57 +02:00
Davide Beatrici
6f1b85170c plugins/ql: Added Spectator state value
When spectating a player, Quake Live gets his data (in this case position and team values); this means that the team doesn't result as "SPEC" and Positional Audio works using his position values. This might be a feature because the spectator can hear the other players with PA, but the spectated player data is sent through him on Mumble and this causes much confusion.
2016-04-25 14:47:32 +02:00
Davide Beatrici
ccb1ff703d plugins/ql: Added camera values for a more precise PA 2016-04-25 14:47:23 +02:00
Davide Beatrici
47a6e3222a plugins/ql: Fix host address string and add comments
There are two memory addresses: one with the obfuscated IP address and one with the true one. Initially I used the first one; when you join through the console it has the true IP address, but when you join through the server browser it shows the obfuscated one: this is a problem. I decided to use the second memory address, that always shows the true IP address.
Reason of the string change: I noticed that the second memory address uses "loopback" instead of "localhost" used by the first, when on a local server.
2016-04-25 14:46:59 +02:00
Davide Beatrici
4f7af50420 Positional audio support for Quake Live
With full extended support (context + identity)
2016-04-25 14:46:31 +02:00