mirror of
https://github.com/wiiu-env/FunctionPatcherModule.git
synced 2025-01-10 08:59:29 +01:00
16 lines
539 B
C
16 lines
539 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 *(*gRealMEMAllocFromDefaultHeapEx)(uint32_t size, int align);
|
||
|
extern void (*gMEMFreeToDefaultHeap)(void *ptr);
|