Commit graph

21 commits

Author SHA1 Message Date
William Pettersson
cdf718217f
util/logging: Don't reuse vargs (#632)
As vargs may be modified by some functions, we should not reuse it and instead create a copy of it. This fixes a segfault on logging calls happening with GCC, and potentially may fix other compilers and platforms as well.
2021-09-20 11:17:51 +02:00
Michael Fabian 'Xaymar' Dirks
5bc6b2473d project: Unify logging structure 2021-09-07 05:22:15 +02:00
Michael Fabian 'Xaymar' Dirks
dce5c6b644 util/profiler: Adjust to match coding guidelines 2021-06-23 16:27:04 +02:00
Michael Fabian 'Xaymar' Dirks
44b961f54a util: Add is_close function 2021-06-23 16:27:04 +02:00
Michael Fabian 'Xaymar' Dirks
33d771d479 util/library: Convert paths to native format 2021-06-17 13:48:29 +02:00
Michael Fabian 'Xaymar' Dirks
66999a55ff util/platform: Add Path and String conversion utility functions 2021-06-17 13:48:29 +02:00
Michael Fabian 'Xaymar' Dirks
d6a8385ab5 util: Add Pascal Triangle and integer power 2021-06-09 03:46:14 +02:00
Michael Fabian 'Xaymar' Dirks
cf30768e7e util: Remove unused legacy function 2021-06-08 05:44:22 +02:00
Michael Fabian 'Xaymar' Dirks
a54f1a144b util: Apply coding guidelines 2021-06-08 05:44:22 +02:00
Michael Fabian 'Xaymar' Dirks
2923c5bd49 uitl/bitmask: Add 'has' function 2021-04-27 03:12:59 +02:00
Michael Fabian 'Xaymar' Dirks
fee3d2cd5c util/logging: Add logging utility
Also contains the function signature and name macros.
2021-04-27 03:12:59 +02:00
Michael Fabian 'Xaymar' Dirks
93c44fe98a util/library: Fix unicode support
Related: #359
2020-11-28 23:48:52 +01:00
Michael Fabian 'Xaymar' Dirks
a0ce296085 util/bitmask: Move bitmask functionality its own file 2020-11-08 03:39:40 +01:00
Michael Fabian 'Xaymar' Dirks
884138b04c util/library: Use string_view instead of string
Slightly improves performance and reduces memory impact, as string data is not duplicated.
2020-11-08 03:39:40 +01:00
Michael Fabian 'Xaymar' Dirks
9751b8fbb5 util/curl: Add missing include for vector 2020-11-02 04:14:50 +01:00
Michael Fabian 'Xaymar' Dirks
81a970473f updater: Add functionality to check for updates
Implements a manual and automatic update checker with support for both release and testing update channels, allowing users to stay as up to date as possible. It is fully compliant with privacy regulations around the world, as it stays completely silent and inactive until the user gives the Ok to connect to GitHub for the latest releases.
2020-09-24 02:01:40 +02:00
Michael Fabian 'Xaymar' Dirks
34ae5dd64b util/curl: Add C++ wrapper for CURL 2020-09-24 02:01:40 +02:00
Michael Fabian 'Xaymar' Dirks
1509d73ef6 util/threadpool: Don't hold work endlessly after processing it 2020-09-10 10:02:06 +02:00
Michael Fabian 'Xaymar' Dirks
53d3f1ae6c util/library: Cross-platform handler for library loading
Adds a utility class and functions to load libraries and symbols from libraries somewhat safely. Libraries are immediately unloaded when the last reference to them is lost, so the shared_ptr should be stored if the library is actually needed.
2020-08-10 20:39:08 +02:00
Michael Fabian 'Xaymar' Dirks
a53518cdb9 project: Remove non-standard std:: prefix from types 2020-08-10 19:51:21 +02:00
Michael Fabian 'Xaymar' Dirks
d332007ae0 project: Code cleanup and reapply formatting
Changes applied:

* Moved utility files to /util/.
* Removed unused #includes.
* Removed unused ::ffmpeg::tools function.
* Removed unused variables.
* Fixed missing parentheses in the version macro.
* Fixed missing override on virtual function overrides and removed unnecessary virtual keyword from them.
* Disabled additional warning for ATL headers on MSVC only.
* Replaced direct printf parameters with their macro equivalent.
* Replaced C-style casts with C++-style casts.
* Applied clang-format again after an earlier change to the CMake file broke the integration for it.
2020-07-29 05:17:42 +02:00