Initial work on implementing support for cheats

This commit is contained in:
Gericom
2026-02-22 20:28:35 +01:00
parent f73c8b0547
commit dddee0bb94
28 changed files with 966 additions and 17 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include "CheatTreeItem.h"
class Cheat : public CheatTreeItem
{
public:
Cheat()
: _cheatData(nullptr), _cheatDataLength(0) { }
Cheat(const char* name, const char* description, bool isCheatActive, const void* cheatData, u32 cheatDataLength)
: CheatTreeItem(name, description), _isCheatActive(isCheatActive)
, _cheatData(cheatData), _cheatDataLength(cheatDataLength) { }
bool GetIsCheatActive() const
{
return _isCheatActive;
}
void SetIsCheatActive(bool isCheatActive)
{
_isCheatActive = isCheatActive;
}
private:
bool _isCheatActive;
const void* _cheatData;
u32 _cheatDataLength;
};