mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Further work on implementing support for cheats
This commit is contained in:
20
arm9/source/patches/arm7/cheats/CheatEnginePatch.h
Normal file
20
arm9/source/patches/arm7/cheats/CheatEnginePatch.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user