mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-09-06 00:33:18 +02:00
27 lines
1.1 KiB
C++
27 lines
1.1 KiB
C++
#pragma once
|
|
|
|
|
|
#include <common/plugin_defines.h>
|
|
#include <vector>
|
|
|
|
class PluginManagement {
|
|
public:
|
|
|
|
static void doRelocations(const std::vector<PluginContainer> &plugins, relocation_trampolin_entry_t *trampData, uint32_t tramp_size);
|
|
|
|
static void memsetBSS(const std::vector<PluginContainer> &plugins);
|
|
|
|
static void callInitHooks(plugin_information_t *pluginInformation);
|
|
|
|
static void PatchFunctionsAndCallHooks(plugin_information_t *gPluginInformation);
|
|
|
|
static bool doRelocation(const std::vector<RelocationData> &relocData, relocation_trampolin_entry_t *tramp_data, uint32_t tramp_length, uint32_t trampolinID);
|
|
|
|
static void unloadPlugins(plugin_information_t * pluginInformation, MEMHeapHandle pluginHeap, BOOL freePluginData);
|
|
|
|
static std::vector<PluginContainer> loadPlugins(const std::vector<PluginData> &pluginList, MEMHeapHandle pHeader, relocation_trampolin_entry_t *trampolin_data, uint32_t trampolin_data_length);
|
|
|
|
static void RestorePatches(plugin_information_t *pluginInformation, BOOL pluginOnly);
|
|
|
|
static void callDeinitHooks(plugin_information_t *pluginInformation);
|
|
}; |