Commit Graph

27 Commits

Author SHA1 Message Date
Maschell
0177dfd604 Add callDeinitHooks and RestorePatches to the PlugingManagement 2020-08-12 18:30:21 +02:00
Maschell
d983a77f94 Addned functions to load plugin meta information from a path or buffer 2020-08-12 18:30:21 +02:00
Maschell
6117a332b7 Fix logging of std::string 2020-08-12 18:30:21 +02:00
Maschell
5580ea9882 Remove debug logs 2020-08-12 18:30:21 +02:00
Maschell
7514e00d68 Improve logging 2020-08-12 18:30:21 +02:00
Maschell
5d306ba833 Add support for loading a list of plugin data on the next application change 2020-08-12 18:30:21 +02:00
Maschell
54534a9445 Add PluginDataPersistence 2020-08-12 18:30:21 +02:00
Maschell
8350766c40 Add missing copy constructors 2020-08-12 18:30:21 +02:00
Maschell
2c1c356450 Free trampolin data when unloading plugins 2020-08-12 18:30:21 +02:00
Maschell
3aac0a821e Add missing import 2020-08-12 18:30:21 +02:00
Maschell
fddd8842f2 Move global variables into a own file 2020-08-12 18:30:21 +02:00
Maschell
be84c8b48f Improve logging 2020-08-12 18:30:21 +02:00
Maschell
d9e57ecc9d Move loadPlugins function to PluginManagement 2020-08-12 18:30:21 +02:00
Maschell
492dcacaad Add a function to unload all plugins from memory in the PluginManagement 2020-08-12 18:30:21 +02:00
Maschell
dd9b32a1f6 Add the PluginHeapHandle as an argument instead of using the global variable 2020-08-12 18:30:21 +02:00
Maschell
cc4b9b4594 Fix calculating the size needed to store the plugins in memory. 2020-08-12 18:30:21 +02:00
Maschell
bbf68181ec Refactor loading plugins 2020-08-12 18:30:21 +02:00
Maschell
8dd161b177 Even more formatting 2020-08-12 18:30:21 +02:00
Maschell
59f361f7de Formatting 2020-08-12 18:30:21 +02:00
Maschell
fae8be334f Save the address of memory allocated on the plugin heap 2020-08-12 18:30:21 +02:00
Maschell
f31da6e1e5 Fix logic behin calling hooks, improve logging when calling hooks. 2020-08-12 18:30:21 +02:00
Maschell
10b118db00 Call the CRT hooks at each application start, not just once. 2020-08-12 18:30:21 +02:00
Maschell
cb6bd93069 Formatting of hooks.cpp, improving logs when a hook is not implemented 2020-08-12 18:30:21 +02:00
Maschell
87fa405af2 Add intial support for function patching via plugins 2020-08-12 18:30:21 +02:00
Maschell
2e0a02f5aa Increase the maximum number of relocations from 500 to 1000. Refactor some code to a "PluginManagement" class. 2020-08-12 18:30:21 +02:00
Maschell
1b047fb30c Calling FINI_WUT_DEVOPTAB at the end of a application is softlocking.
MEM2 is cleared anyway so this shouldn't be a memory leak. Needs further research
2020-08-12 18:30:21 +02:00
Maschell
9c23f9f315 First iteration of the WUPS-Backend as a .rpx/module for the SetupPayload
- Function replacements are not implemented yet
- Serveral features like the config menu are missing

Still WIP
2020-08-12 18:30:21 +02:00