mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 01:06:50 +02:00
21 lines
500 B
C++
21 lines
500 B
C++
#pragma once
|
|
#include "patches/Patch.h"
|
|
|
|
/// @brief Arm7 patch for injecting the cheat engine in the vblank interrupt handler.
|
|
class CheatEnginePatch : public Patch
|
|
{
|
|
public:
|
|
bool FindPatchTarget(PatchContext& patchContext) override;
|
|
void ApplyPatch(PatchContext& patchContext) override;
|
|
|
|
void SetCheats(const void* cheats)
|
|
{
|
|
_cheats = cheats;
|
|
}
|
|
|
|
private:
|
|
const void* _cheats = nullptr;
|
|
u32* _vblankIrqHandler = nullptr;
|
|
const u32* _foundPattern = nullptr;
|
|
};
|