libretro: Cheat support

This commit is contained in:
Connor McLaughlin
2020-09-25 21:16:33 +10:00
parent 1e6815634a
commit 40037d6e90
6 changed files with 90 additions and 39 deletions

View File

@ -71,6 +71,7 @@ public:
ALWAYS_INLINE bool IsCodeEnabled(u32 index) const { return m_codes[index].enabled; }
void AddCode(CheatCode cc);
void SetCode(u32 index, CheatCode cc);
void RemoveCode(u32 i);
u32 GetEnabledCodeCount() const;
@ -79,6 +80,7 @@ public:
void SetCodeEnabled(u32 index, bool state);
static std::optional<Format> DetectFileFormat(const char* filename);
static bool ParseLibretroCheat(CheatCode* cc, const char* line);
bool LoadFromFile(const char* filename, Format format);
bool LoadFromPCSXRFile(const char* filename);