Commit Graph

23 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
Davide Beatrici
ffddb3ce54 REFAC(client): Replace <codecvt> usage
Deprecated in C++17 and slated for removal in C++26.

Unfortunately no standard replacement is available yet.
2024-07-26 20:14:22 +02:00
Robert Adam
2b35c0c28f REFAC(plugins): Unified Mumble plugin headers
Having different include files that are needed (and which are
inter-dependent) to create your own plugin, makes things harder than it
needs to be.

Therefore, all plugin header files (those for the "new" (1.4) plugin
framework anyway) have been combined into one header file. Thus,
developers now only have to download a single file and include that
instead of having to figure out what files to download and what to
include where.

Taking the chance, the version number has been removed from the header
file's name. This allows one to track changes made to the API via git
(which is not quite as easy if you create a new file every time you make
a change).
2023-07-27 19:39:30 +02:00
Robert Adam
249d2c6298 MAINT: Update copyright headers to 2023 2023-01-08 15:54:35 +01:00
Davide Beatrici
5b7f95b54f REFAC(positional-audio): Define "procid_t" as "uint64_t" instead of "uint32_t"
This allows us to take advantage of the full range provided by the plugin API.
2022-06-05 02:48:50 +02:00
Davide Beatrici
cf38096242 FIX(positional-audio): Update Among Us plugin to work with v2022.3.29s (1864)
https://store.steampowered.com/news/app/945360/view/3121564363609006624
2022-04-01 07:21:37 +02:00
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
Davide Beatrici
9c4ff543be FIX(positional-audio): Update Among Us plugin to work with v2021.12.15s (1421)
https://store.steampowered.com/news/app/945360/view/5918290951261475310
2021-12-19 21:59:47 +01:00
Davide Beatrici
cf8c941b2a FIX(positional-audio): Update Among Us plugin to work with v2021.11.9.5s
https://store.steampowered.com/news/app/945360/view/3097907147121066176
https://store.steampowered.com/news/app/945360/view/3097908416252836584
2021-12-11 23:33:16 +01:00
Davide Beatrici
7aabb14836 FIX(positional-audio): Update Among Us plugin to work with v2021.6.30s
https://steamcommunity.com/games/945360/announcements/detail/2994312940971770701

This commit also updates the name of a few variables.
2021-07-14 06:35:42 +02: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
Davide Beatrici
1f609561a6 FIX(positional-audio): Update Among Us plugin to work with v2021.6.15s
https://steamcommunity.com/games/945360/announcements/detail/3055110270127094252
2021-06-16 06:00:49 +02:00
Davide Beatrici
32d101f090 REFAC(positional-audio): Use new plugin API in Among Us plugin
Full functionality is retained.
2021-06-12 08:33:44 +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
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
Davide Beatrici
6ceeef39ae FIX(positional-audio): Update Among Us plugin to work with v2021.3.31.3s
https://store.steampowered.com/news/app/945360/view/3021326294554201922
2021-04-03 07:26:02 +02:00
Davide Beatrici
e152fa7603 FIX(positional-audio): Update Among Us plugin to work with v2021.3.5s
https://store.steampowered.com/news/app/945360/view/3050597789009577255
2021-03-15 07:47:26 +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
Davide Beatrici
f069abdf77 FIX(positional-audio): Update Among Us plugin to work with v2020.12.09s
The reason why the signature has to be stricter now is due to a very similar function being present at an earlier address:

il2cpp:10E99B02 83 C4 08          add     esp, 8
il2cpp:10E99B05 84 C0             test    al, al
il2cpp:10E99B07 74 39             jz      short loc_10E99B42
il2cpp:10E99B09 A1 AC 7C C5 11    mov     eax, HLBNNHFCNAJ__TypeInfo ; HLBNNHFCNAJ
il2cpp:10E99B0E 8B 40 5C          mov     eax, [eax+5Ch]
il2cpp:10E99B11 8B 38             mov     edi, [eax]

il2cpp:112CC4B8 83 C4 08          add     esp, 8
il2cpp:112CC4BB 84 C0             test    al, al
il2cpp:112CC4BD 74 39             jz      short loc_112CC4F8
il2cpp:112CC4BF A1 54 7F C5 11    mov     eax, FMLLKEACGIO__TypeInfo ; FMLLKEACGIO
il2cpp:112CC4C4 8B 40 5C          mov     eax, [eax+5Ch]
il2cpp:112CC4C7 8B 00             mov     eax, [eax]

FMLLKEACGIO is AmongUsClient, the object we need.

See https://wiki.weewoo.net/wiki/Translations for more info on the obfuscated names.
2021-01-01 21:16:18 +01:00
Davide Beatrici
2feebe6801 FEAT(positional-audio): Add plugin for Among Us
Tested with v2020.10.22s and v2020.09.22s.

Unless the pattern we're searching for becomes invalid or the structures we're using change, the plugin should keep working.
2020-11-11 05:25:56 +01:00