mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2024-11-14 05:55:11 +01:00
16 lines
555 B
C++
16 lines
555 B
C++
#pragma once
|
|
#include "../PatchedFunctionData.h"
|
|
#include <coreinit/memheap.h>
|
|
#include <memory>
|
|
#include <vector>
|
|
|
|
#define JUMP_HEAP_DATA_SIZE (32 * 1024)
|
|
extern char gJumpHeapData[];
|
|
extern MEMHeapHandle gJumpHeapHandle;
|
|
|
|
extern std::shared_ptr<FunctionAddressProvider> gFunctionAddressProvider;
|
|
extern std::mutex gPatchedFunctionsMutex;
|
|
extern std::vector<std::shared_ptr<PatchedFunctionData>> gPatchedFunctions;
|
|
|
|
extern void *(*gMEMAllocFromDefaultHeapExForThreads)(uint32_t size, int align);
|
|
extern void (*gMEMFreeToDefaultHeapForThreads)(void *ptr); |