Commit Graph

24 Commits

Author SHA1 Message Date
Maschell
e85d383ec4 Log the module version on each application start 2023-01-04 22:40:13 +01:00
Maschell
ac0c341eb4 Reset the cached function handle if RPL has been unloaded 2023-01-02 17:06:07 +01:00
Maschell
e51e6a9509 Reset function patch state if a RPL has been unloaded. 2023-01-02 17:06:07 +01:00
Maschell
7703eac375 Fix restoring "dynamic" functions. Instead of predicting an unload of a RPL we now check if the replaced instruction has been changed. 2023-01-02 15:44:27 +01:00
Maschell
ced1e27b53 Fix patching dynamic function in WUMS_INITIALIZE hooks 2022-08-21 22:47:37 +02:00
Maschell
d602d17034 Update the malloc/free pointers used for threads to fix apps which use a custom heap 2022-07-28 02:44:13 -07:00
Maschell
f95f00e6f2 Rewrite of Function Patcher to match libfunctionpatcher 2022-05-08 19:26:06 +02:00
Maschell
e0f745f0c9 Improve logging to include module name 2022-05-08 19:26:06 +02:00
Maschell
a8b4f7188b Format the code via clang-format 2022-02-03 20:57:25 +01:00
Maschell
2db7befb4b Move logging logic into a seperate file 2022-01-24 18:52:59 +01:00
Maschell
ffd4c4f894 Only declare variables when needed 2022-01-24 18:49:31 +01:00
Maschell
c9c0aeaa2b WUMS 0.3.1 support 2022-01-24 18:48:11 +01:00
Maschell
0678949900 Remove WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK 2022-01-24 18:46:22 +01:00
Maschell
f5f9c5f8ff Only do logging when built with make DEBUG=1 2022-01-12 23:07:09 +01:00
Maschell
4553a06f9b Formatting and cleanup 2021-09-24 14:49:20 +02:00
Maschell
38b58faf88 Reenable logging, Update Dockerfile to use WUMS 0.2 2021-09-17 18:27:12 +02:00
Maschell
ee76aba48e Compile with latest wut 2021-04-17 12:13:22 +02:00
Maschell
c8df49e85c Use WUMS_MODULE_SKIP_WUT_INIT 2021-02-19 17:10:17 +01:00
Maschell
978678675c Add FunctionPatcherRestoreDynamicFunctions 2020-12-28 14:45:28 +01:00
Maschell
e745f34b3a Rename WUMS_MODULE_INIT_BEFORE_ENTRYPOINT => WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK, add WUMS_MODULE_SKIP_ENTRYPOINT 2020-12-28 14:42:19 +01:00
Maschell
00e02a33e1 Only patch a function if the module is already loaded 2020-12-26 14:49:48 +01:00
Maschell
64a2b952ba Add FunctionPatcherRestoreFunctions 2020-06-12 21:10:59 +02:00
Maschell
9e4baed439 Make sure to call the init hook before the entrypoint. 2020-06-07 13:59:35 +02:00
Maschell
edcf2c69b1 initial commit 2020-06-06 22:15:47 +02:00