mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
Preprocess cheats to get rid of hacks that try to modify the cheat engine, add support for C2 cheat opcode
This commit is contained in:
16
arm7/source/loader/CheatPreprocessor.h
Normal file
16
arm7/source/loader/CheatPreprocessor.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
#include "../../include/picoLoader7.h"
|
||||
|
||||
/// @brief Class for preprocessing cheats to get rid of hacks that try to modify the cheat engine.
|
||||
class CheatPreprocessor
|
||||
{
|
||||
public:
|
||||
/// @brief Preprocesses the given \p cheat.
|
||||
/// @param cheat The cheat to preprocess.
|
||||
void PreprocessCheat(pload_cheat_t* cheat) const;
|
||||
|
||||
private:
|
||||
void PatchD4Hack(pload_cheat_t* cheat, u64 hackPattern, u8 patchedInstructionFlag) const;
|
||||
void PatchDBFix(pload_cheat_t* cheat) const;
|
||||
void PatchAsmHack(pload_cheat_t* cheat) const;
|
||||
};
|
||||
Reference in New Issue
Block a user