mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2025-02-16 20:09:12 +01:00
Organize imports and format code
This commit is contained in:
parent
80a0712519
commit
7a7a1f7a63
@ -9,7 +9,6 @@
|
|||||||
#include "PluginManagement.h"
|
#include "PluginManagement.h"
|
||||||
#include "hooks.h"
|
#include "hooks.h"
|
||||||
|
|
||||||
|
|
||||||
bool PluginManagement::doRelocation(const std::vector<RelocationData> &relocData, relocation_trampolin_entry_t *tramp_data, uint32_t tramp_length, uint32_t trampolinID) {
|
bool PluginManagement::doRelocation(const std::vector<RelocationData> &relocData, relocation_trampolin_entry_t *tramp_data, uint32_t tramp_length, uint32_t trampolinID) {
|
||||||
std::map<std::string, OSDynLoad_Module> moduleHandleCache;
|
std::map<std::string, OSDynLoad_Module> moduleHandleCache;
|
||||||
for (auto const &cur : relocData) {
|
for (auto const &cur : relocData) {
|
||||||
|
@ -48,6 +48,7 @@ static const char **hook_names = (const char *[]) {
|
|||||||
"WUPS_LOADER_HOOK_APPLET_START"};
|
"WUPS_LOADER_HOOK_APPLET_START"};
|
||||||
|
|
||||||
void CallHookEx(plugin_information_t *pluginInformation, wups_loader_hook_type_t hook_type, int32_t plugin_index_needed) {
|
void CallHookEx(plugin_information_t *pluginInformation, wups_loader_hook_type_t hook_type, int32_t plugin_index_needed) {
|
||||||
|
DEBUG_FUNCTION_LINE("Calling hook of type %s [%d]", hook_names[hook_type], hook_type);
|
||||||
for (int32_t plugin_index = 0; plugin_index < pluginInformation->number_used_plugins; plugin_index++) {
|
for (int32_t plugin_index = 0; plugin_index < pluginInformation->number_used_plugins; plugin_index++) {
|
||||||
plugin_information_single_t *plugin_data = &pluginInformation->plugin_data[plugin_index];
|
plugin_information_single_t *plugin_data = &pluginInformation->plugin_data[plugin_index];
|
||||||
if (plugin_index_needed != -1 && plugin_index_needed != plugin_index) {
|
if (plugin_index_needed != -1 && plugin_index_needed != plugin_index) {
|
||||||
|
@ -1,28 +1,15 @@
|
|||||||
#include <wups.h>
|
|
||||||
#include <whb/log.h>
|
#include <whb/log.h>
|
||||||
#include <whb/log_udp.h>
|
#include <whb/log_udp.h>
|
||||||
#include <exception>
|
|
||||||
#include <sysapp/launch.h>
|
|
||||||
#include <coreinit/debug.h>
|
#include <coreinit/debug.h>
|
||||||
#include <coreinit/memexpheap.h>
|
#include <coreinit/memexpheap.h>
|
||||||
#include <coreinit/dynload.h>
|
|
||||||
#include <coreinit/cache.h>
|
#include <coreinit/cache.h>
|
||||||
#include "plugin/PluginDataFactory.h"
|
#include "plugin/PluginDataFactory.h"
|
||||||
#include "plugin/PluginContainerPersistence.h"
|
#include "plugin/PluginContainerPersistence.h"
|
||||||
#include "plugin/PluginInformationFactory.h"
|
#include "plugin/PluginInformationFactory.h"
|
||||||
#include "plugin/PluginMetaInformationFactory.h"
|
#include "plugin/PluginMetaInformationFactory.h"
|
||||||
#include "plugin/FunctionData.h"
|
|
||||||
#include "plugin/PluginContainer.h"
|
|
||||||
#include "utils/logger.h"
|
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
#include "kernel/kernel_utils.h"
|
|
||||||
|
|
||||||
#include "utils/ElfUtils.h"
|
|
||||||
#include "common/relocation_defines.h"
|
|
||||||
#include "common/plugin_defines.h"
|
|
||||||
#include "common/plugin_defines.h"
|
|
||||||
#include "common/module_defines.h"
|
#include "common/module_defines.h"
|
||||||
#include "hooks.h"
|
|
||||||
#include "PluginManagement.h"
|
#include "PluginManagement.h"
|
||||||
#include "globals.h"
|
#include "globals.h"
|
||||||
#include <whb/sdcard.h>
|
#include <whb/sdcard.h>
|
||||||
|
@ -36,6 +36,7 @@ std::optional<PluginMetaInformation> PluginMetaInformationFactory::loadPlugin(co
|
|||||||
}
|
}
|
||||||
return loadPlugin(readerOpt.value());
|
return loadPlugin(readerOpt.value());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<PluginMetaInformation> PluginMetaInformationFactory::loadPlugin(const std::string filePath) {
|
std::optional<PluginMetaInformation> PluginMetaInformationFactory::loadPlugin(const std::string filePath) {
|
||||||
auto reader = new elfio;
|
auto reader = new elfio;
|
||||||
if (reader == NULL || !reader->load(filePath)) {
|
if (reader == NULL || !reader->load(filePath)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user