mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 01:06:50 +02:00
25 lines
607 B
C++
25 lines
607 B
C++
#pragma once
|
|
#include "sections.h"
|
|
#include "patches/PatchCode.h"
|
|
|
|
DEFINE_SECTION_SYMBOLS(patch_cheatengine);
|
|
|
|
extern "C" void cheatengine_entry(void);
|
|
|
|
extern const void* cheatengine_cheatsPtr;
|
|
|
|
class CheatEnginePatchCode : public PatchCode
|
|
{
|
|
public:
|
|
CheatEnginePatchCode(PatchHeap& patchHeap, const void* cheatsAddress)
|
|
: PatchCode(SECTION_START(patch_cheatengine), SECTION_SIZE(patch_cheatengine), patchHeap)
|
|
{
|
|
cheatengine_cheatsPtr = cheatsAddress;
|
|
}
|
|
|
|
const void* GetCheatEngineFunction() const
|
|
{
|
|
return GetAddressAtTarget((void*)cheatengine_entry);
|
|
}
|
|
};
|