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
AgeCommit message (Collapse)Author
2021-03-02MAINT: Update copyright notice to 2021Robert Adam
This was done by running scripts/updateLicenseHeaders.py and then manually editing the LICENSE file.
2020-10-28FEAT/REFAC(plugins): Add utf8ToUtf16(), move and rename readAll()Davide Beatrici
The new function is going to be used in a later commit. readAll() is moved to mumble_plugin_utils.h and is renamed to readFile(), to make its purpose clearer. This commit also moves the <math.h> include to mumble_plugin_utils.h, because that's where it's required. Also, it's now included as <cmath>, as recommended for C++.
2020-10-01REFAC(client): move common stuff from getExportedSymbol() to a template functionDavide Beatrici
Thanks to @ZeroAbility for the idea.
2020-09-27FEAT(client): add getExportedSymbol() function for positional audio pluginsDavide Beatrici
This function is of critical importance for the Source Engine plugin, let me elaborate on why. Most games consist in an executable and maybe one or more libraries, but they don't have particular exported symbols we can use to easily access (existing) resources inside the process, which means we have to rely on hardcoded offsets and hex pattern scanning. Source Engine games are special: the executable is nothing more than a manager that takes care of loading the core libraries, which are engine(.dll|.so) and client(.dll|.so) (or server(.dll|.so) in the case of a dedicated server). Those libraries have a common exported symbol, which is CreateInterface(). The function takes the interface's name as argument (char *), creates the interface object if it doesn't exist yet and returns a pointer (void *) to it. The interfaces objects are stored in a list called s_pInterfaceList, which is usually an exported symbol on Linux. getExportedSymbol() allows us to get the address to CreateInterface() (different for each loaded library) inside the process and read the function's assembly code in order to reach s_pInterfaceList. If s_pInterfaceList is exported we can get its address with getExportedSymbol(), without the need of CreateInterface().
2020-09-11FORMAT: Run clang-format 10 on all C/CXX source-filesRobert
2020-04-24mumble_plugin_linux.h: free "path" only after we're done with "filename"Davide Beatrici
basename() returns a pointer to the position where the basename starts in the string passed as argument.
2020-01-07Auto-update LICENSE.header in source filesDavide Beatrici
2019-08-17mumble_plugin_linux.h: detect process architecture by reading the process' ↵Davide Beatrici
memory instead of its binary Aside from being faster, it also requires less code. This commit also changes the way architecture is detected for Win32 processes. Previously, we relied on the Wine's preloader binary's architecture because we read its ELF header; now we read the NT header(s) by calling isWin32Process64Bit() (implemented in 86154c82344f130ed14633a21fdbe19b7937a80f).
2019-08-09plugins: use new headerDavide Beatrici
2019-08-09plugins: move common functions and variables from OS-specific headers to ↵Davide Beatrici
mumble_plugin_main.h This is in preparation for the new Source Engine plugin which will add a few common functions. This commit also improves the functions arguments so that they are passed by reference and marked as const (when possible). A new data type called procid_t is created, intended to be a replacement for pid_t (Linux) and DWORD (Windows).
2019-01-25Auto-update LICENSE.header in source filesDavide Beatrici
2018-01-02Auto-update LICENSE.header in source files.Mikkel Krautz
2017-11-19Determine correct pointer size automatically, without the need of specific ↵davidebeatrici
headers and variables This commit removes the architecture-specific headers, by keeping only the OS-specific ones. The different headers were needed to keep the legacy Windows header, after we created the "procptr32_t" (4 bytes) and "procptr64_t" (8 bytes) variables. We created these variables because the "peekProc" functions read as many bytes as the variable can hold. A pointer is 4 bytes on 32 bit platforms and 8 bytes on 64 bit ones. Now there's a new variable, called "procptr_t" and with a size of 8 bytes (unsigned long long). We had a "peekProc" template function which returned the value stored at the specified memory address, but it has been used only to read pointers so far. Since we needed a new function that checks the process architecture and sets the correct size of the memory to read, I decided to "recycle" it.
2017-01-08Update tree copyrights to 2017.Mikkel Krautz
2016-11-03plugins: fix compile error on LinuxDavide Beatrici
This fixes #2615, introduced by #2611.
2016-08-13mumble_plugin_linux.h: align API of the Windows and Linux plugin headers.Mikkel Krautz
2016-08-12pugins/mumble_plugin_linux.h: convert C-style casts to C++-style casts.Mikkel Krautz
2016-08-12plugins/mumble_plugin_linux.h: use non-C++11 std::ifstream::open().Mikkel Krautz
Fixes the C++03 build.
2016-08-11Linux support for positional audio pluginsdavidebeatrici