2022-05-08 18:51:05 +02:00
|
|
|
#pragma once
|
|
|
|
#include "../PatchedFunctionData.h"
|
2023-01-04 22:34:03 +01:00
|
|
|
#include "version.h"
|
2022-05-08 18:51:05 +02:00
|
|
|
#include <coreinit/memheap.h>
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
2023-01-10 18:03:18 +01:00
|
|
|
#define MODULE_VERSION "v0.2"
|
2023-01-04 22:34:03 +01:00
|
|
|
#define MODULE_VERSION_FULL MODULE_VERSION MODULE_VERSION_EXTRA
|
|
|
|
|
2022-05-08 18:51:05 +02:00
|
|
|
#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;
|
|
|
|
|
2022-07-26 23:11:47 +02:00
|
|
|
extern void *(*gMEMAllocFromDefaultHeapExForThreads)(uint32_t size, int align);
|
|
|
|
extern void (*gMEMFreeToDefaultHeapForThreads)(void *ptr);
|