mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 17:26:48 +02:00
Preserve cheats when OS_ResetSystem is used, move temporary save buffer to main memory
This commit is contained in:
@@ -5,16 +5,14 @@
|
||||
class CheatEnginePatch : public Patch
|
||||
{
|
||||
public:
|
||||
explicit CheatEnginePatch(const void* cheats)
|
||||
: _cheats(cheats) { }
|
||||
|
||||
bool FindPatchTarget(PatchContext& patchContext) override;
|
||||
void ApplyPatch(PatchContext& patchContext) override;
|
||||
|
||||
void SetCheats(const void* cheats)
|
||||
{
|
||||
_cheats = cheats;
|
||||
}
|
||||
|
||||
private:
|
||||
const void* _cheats = nullptr;
|
||||
const void* _cheats;
|
||||
u32* _vblankIrqHandler = nullptr;
|
||||
const u32* _foundPattern = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user