Add pcsxr and libretro cheat list parsing

This commit is contained in:
Connor McLaughlin
2020-09-09 22:11:28 +10:00
parent c2e7e8254f
commit ddb38ac31d
7 changed files with 620 additions and 1 deletions

View File

@ -13,6 +13,9 @@ class StateWrapper;
class Controller;
struct CheatCode;
class CheatList;
struct SystemBootParameters
{
SystemBootParameters();
@ -156,4 +159,16 @@ bool ReplaceMediaPathFromPlaylist(u32 index, const std::string_view& path);
/// Switches to the specified media/disc playlist index.
bool SwitchMediaFromPlaylist(u32 index);
/// Returns true if there is currently a cheat list.
bool HasCheatList();
/// Accesses the current cheat list.
CheatList* GetCheatList();
/// Applies a single cheat code.
void ApplyCheatCode(const CheatCode& code);
/// Sets or clears the provided cheat list, applying every frame.
void SetCheatList(std::unique_ptr<CheatList> cheats);
} // namespace System