ppsspp/Core/CwCheat.h
2013-05-31 23:14:26 -07:00

43 lines
913 B
C++

// Rough and ready CwCheats implementation, disabled by default.
// Will not enable by default until the TOOD:s have been addressed.
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include "base/basictypes.h"
#include "Core/MemMap.h"
void __CheatInit();
void __CheatShutdown();
std::vector<std::string> makeCodeParts();
class CWCheatEngine {
public:
CWCheatEngine();
std::string String();
void AddCheatLine(std::string& line);
std::vector<std::string> GetCodesList();
void CreateCodeList();
void Exit();
void Run();
std::vector<int> GetNextCode();
private:
void SkipCodes(int count);
void SkipAllCodes();
int GetAddress(int value);
static uint64_t const serialVersionUID = 6791588139795694296ULL;
static const int cheatsThreadSleepMillis = 5;
bool cheatsOn;
std::vector<std::string> codes;
size_t currentCode;
bool exit2;
std::vector<std::string> parts;
};