mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Initial work on implementing support for cheats
This commit is contained in:
28
arm9/source/cheats/Cheat.h
Normal file
28
arm9/source/cheats/Cheat.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user