CheatList: Add merge list function for importing

This commit is contained in:
Connor McLaughlin
2020-11-07 19:58:59 +10:00
parent 576914cd2c
commit 6828082f8b
3 changed files with 37 additions and 4 deletions

View File

@ -102,6 +102,9 @@ public:
ALWAYS_INLINE u32 GetCodeCount() const { return static_cast<u32>(m_codes.size()); }
ALWAYS_INLINE bool IsCodeEnabled(u32 index) const { return m_codes[index].enabled; }
const CheatCode* FindCode(const char* name) const;
const CheatCode* FindCode(const char* group, const char* name) const;
void AddCode(CheatCode cc);
void SetCode(u32 index, CheatCode cc);
void RemoveCode(u32 i);
@ -125,6 +128,8 @@ public:
void ApplyCode(u32 index);
void MergeList(const CheatList& cl);
private:
std::vector<CheatCode> m_codes;
};