mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 17:26:48 +02:00
17 lines
541 B
C++
17 lines
541 B
C++
#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;
|
|
};
|