WiiUPluginLoaderBackend/source/PluginManagement.h

22 lines
1.0 KiB
C
Raw Permalink Normal View History

#pragma once
2022-02-04 16:25:44 +01:00
#include "plugin/PluginContainer.h"
#include <forward_list>
2022-02-04 16:25:44 +01:00
#include <memory>
#include <vector>
#include <wums/defines/relocation_defines.h>
class PluginManagement {
public:
static std::vector<std::unique_ptr<PluginContainer>> loadPlugins(const std::forward_list<std::shared_ptr<PluginData>> &pluginList, relocation_trampoline_entry_t *trampoline_data, uint32_t trampoline_data_length);
2020-05-03 12:30:15 +02:00
static void callInitHooks(const std::vector<std::unique_ptr<PluginContainer>> &plugins);
static bool doRelocations(const std::vector<std::unique_ptr<PluginContainer>> &plugins, relocation_trampoline_entry_t *trampData, uint32_t tramp_size);
static bool doRelocation(const std::vector<std::unique_ptr<RelocationData>> &relocData, relocation_trampoline_entry_t *tramp_data, uint32_t tramp_length, uint32_t trampolineID);
static bool DoFunctionPatches(const std::vector<std::unique_ptr<PluginContainer>> &plugins);
static bool RestoreFunctionPatches(const std::vector<std::unique_ptr<PluginContainer>> &plugins);
};