2020-05-03 10:21:05 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include <common/plugin_defines.h>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class PluginManagement {
|
|
|
|
public:
|
|
|
|
|
2020-05-03 12:30:15 +02:00
|
|
|
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);
|
2020-05-03 10:21:05 +02:00
|
|
|
|
|
|
|
static void callInitHooks(plugin_information_t *pluginInformation);
|
|
|
|
|
2020-05-03 12:30:15 +02:00
|
|
|
static void PatchFunctionsAndCallHooks(plugin_information_t *gPluginInformation);
|
2020-05-03 10:21:05 +02:00
|
|
|
|
|
|
|
static bool doRelocation(const std::vector<RelocationData> &relocData, relocation_trampolin_entry_t *tramp_data, uint32_t tramp_length, uint32_t trampolinID);
|
|
|
|
};
|