FunctionPatcherModule/source/utils/globals.h

21 lines
679 B
C
Raw Normal View History

#pragma once
#include "../PatchedFunctionData.h"
#include "version.h"
#include <coreinit/memheap.h>
#include <memory>
#include <vector>
2024-04-24 18:48:33 +02:00
#define MODULE_VERSION "v0.2.3"
#define MODULE_VERSION_FULL MODULE_VERSION MODULE_VERSION_EXTRA
#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);
2023-03-28 20:20:52 +02:00
extern void (*gMEMFreeToDefaultHeapForThreads)(void *ptr);