WiiUPluginLoaderBackend/source/patcher/hooks_patcher.cpp
Maschell 2705a91c13 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-04-29 18:02:36 +02:00

13 lines
516 B
C++

#include <utils/logger.h>
#include <utils/function_patcher.h>
#include "hooks_patcher.h"
hooks_magic_t method_hooks_hooks[] __attribute__((section(".data"))) = {
};
uint32_t method_hooks_size_hooks __attribute__((section(".data"))) = sizeof(method_hooks_hooks) / sizeof(hooks_magic_t);
//! buffer to store our instructions needed for our replacements
volatile uint32_t method_calls_hooks[sizeof(method_hooks_hooks) / sizeof(hooks_magic_t) * FUNCTION_PATCHER_METHOD_STORE_SIZE] __attribute__((section(".data")));