CheatList: Allow passing in strings instead of filenames

This commit is contained in:
Connor McLaughlin
2020-11-07 20:36:30 +10:00
parent 6828082f8b
commit b6ec587e5b
2 changed files with 57 additions and 24 deletions

View File

@ -116,12 +116,17 @@ public:
void SetCodeEnabled(u32 index, bool state);
static std::optional<Format> DetectFileFormat(const char* filename);
static Format DetectFileFormat(const std::string& str);
static bool ParseLibretroCheat(CheatCode* cc, const char* line);
bool LoadFromFile(const char* filename, Format format);
bool LoadFromPCSXRFile(const char* filename);
bool LoadFromLibretroFile(const char* filename);
bool LoadFromString(const std::string& str, Format format);
bool LoadFromPCSXRString(const std::string& str);
bool LoadFromLibretroString(const std::string& str);
bool SaveToPCSXRFile(const char* filename);
void Apply();