Commit Graph

101 Commits

Author SHA1 Message Date
Maschell
9cd0d43111 Fix loading plugins with ".wut_load_bounds" section 2022-05-14 15:43:30 +02:00
Maschell
cda9c3e055 Rewrite the plugin backend, use smart pointers is possible, don't persist in structs and simplify code 2022-05-14 15:43:30 +02:00
Maschell
fb6373ec63 Fix elfLinkOne to support a tramp in both directions 2022-05-14 15:43:30 +02:00
Maschell
ad63f27a8d Add the module name to the logs 2022-05-14 15:43:30 +02:00
Maschell
a7494c59cb Minor code cleanup 2022-04-23 09:11:36 +02:00
Maschell
48eb915a70 Use DEBUG_FUNCTION_LINE_ERR on error. 2022-04-23 09:11:36 +02:00
Maschell
598c928d79 Control verbose logging via buildflags 2022-04-23 09:11:36 +02:00
Maschell
86a946a9fb Store the plugin configs at the correct location when running inside an environment 2022-02-26 16:43:08 +01:00
Maschell
b0d1391e5a Call deinitLogging on exit not request exit 2022-02-26 16:43:08 +01:00
Maschell
a6ced98864 Use proper alignmend buffer for reading/writing 2022-02-26 16:43:08 +01:00
Maschell
a916a6e42b Stop calling deinit when unloading plugins 2022-02-26 16:43:08 +01:00
Maschell
ae3719c833 Only call init malloc/newlib/stdcpp on init 2022-02-26 16:43:08 +01:00
Maschell
4f5ba85c39 Only call fini when the plugin will be unloaded 2022-02-26 16:43:08 +01:00
Maschell
6df6d871aa Include cleanup, fix compiling with latest wut, 2022-02-26 16:43:08 +01:00
Maschell
2547c7edca Format the code via clang-format 2022-02-04 16:35:53 +01:00
Maschell
aca917c8aa Load the plugins from the environment directory 2022-01-30 13:31:58 +01:00
Maschell
614f58ea8e Formatting, fix spelling, clean up 2022-01-27 12:47:33 +01:00
Maschell
84afdb3179 Fix building with logs 2022-01-26 14:09:36 +01:00
Maschell
93eca9c403 Deinit logging, only do logging when built with make DEBUG=1 2022-01-23 21:43:54 +01:00
Maschell
b49f561430 WUPS 0.7.0 support 2022-01-23 21:16:38 +01:00
Maschell
79eb5758b7 Use std::shared_ptr 2021-12-15 17:09:30 +01:00
Maschell
64f78ccec4 Patch Kernel to resolve symbols names of plugins 2021-12-15 17:04:30 +01:00
Maschell
719ae8e4da Decrease the maximum plugin description length to 100 byte. 2021-12-11 13:00:54 +01:00
Maschell
1f2b65b308 Use the LoggingModule if possible 2021-11-06 23:16:37 +01:00
Maschell
fe2e7d6fa9 WUPS 0.6.1 support 2021-10-01 17:25:48 +02:00
Maschell
aa90e2478b Formatting and cleanup 2021-09-25 14:26:18 +02:00
Maschell
13ed348f43 Add support for the config and storage API. Bump version to 0.6 2021-09-24 20:37:54 +02:00
Maschell
ed792716fe Code cleanup 2021-09-18 12:21:27 +02:00
Maschell
a968fb3277 Add missing "WUMS_USE_WUT_DEVOPTAB()" hook, use latest WUPS/WUMS version in Dockerfile 2021-09-17 16:45:11 +02:00
Maschell
5247775b03 Support for WUPS 0.5, compile with latest wut version 2021-04-17 14:05:39 +02:00
Maschell
51e1c4c1f2 Tweak some compiler options 2021-04-17 13:38:36 +02:00
Maschell
fe64a68d41 Stop logging every hook call 2021-04-01 00:44:05 +02:00
Maschell
b48a53b63d Try to allocate memory for the plugins via the memory mapping module 2021-04-01 00:37:22 +02:00
Maschell
f11649bc36 Support WUPS 0.4, remove some unused code. 2021-03-16 17:55:32 +01:00
Maschell
189af02743 Reduce logging 2021-02-19 19:41:04 +01:00
Maschell
75735e4e4d Remove some unneeded logging 2021-01-10 18:20:54 +01:00
Maschell
f0b78caec3 Updating logging messages, call DCFlushRange on the actual heap instead of a hardcoded address, general clean up. 2021-01-10 13:17:47 +01:00
Maschell
881337ca41 Allocate memory for storing plugins on the default heap 2021-01-01 01:59:36 +01:00
Maschell
ec443161af Fix potential memory leaks 2021-01-01 01:59:09 +01:00
Maschell
db0f9f70d4 Read plugins into a aligned buffer to improve reading speed. 2020-12-28 14:46:30 +01:00
Maschell
f7b4b568d2 Remove \n in log messages 2020-12-28 14:40:53 +01:00
Maschell
4ef9a90378 Fix patching of dynamic functions by resetting there status on exit 2020-12-28 14:38:49 +01:00
Maschell
75bbf9b457 Call ApplicationEnd-hooks inside WUMS_APPLICATIONS_ENDS, remove __init_wut()/__fini_wut() calls 2020-12-28 14:38:08 +01:00
Maschell
96cfe71230 Add OSDynLoad_AddNotifyCallback to patch function if a new RPL was loaded 2020-12-26 15:59:06 +01:00
Maschell
e9bd4651ca Clean up and formatting 2020-12-26 14:17:50 +01:00
Maschell
0467178650 Add missing __init_wut and __fini_wut calls 2020-12-26 13:27:50 +01:00
Maschell
2e2c46324c Implement WUPS_LOADER_HOOK_VSYNC hook 2020-08-09 18:14:58 +02:00
Maschell
c58428c4b2 Add RELEASE_FORGROUND and ACQUIRED_FOREGROUND hooks 2020-08-09 18:01:18 +02:00
Maschell
c76edf09c4 Actually read the target process from the plugin while function patching 2020-06-19 17:04:39 +02:00
Maschell
ce73ac48e0 Use the function patcher module for the plugin function patches 2020-06-13 16:57:53 +02:00