ppsspp/Core/CwCheat.h

50 lines
853 B
C
Raw Normal View History

2013-05-16 15:42:25 -05:00
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include "Core\MemMap.h"
void __CheatInit();
void __CheatShutdown();
//void Register_CwCheat();
2013-05-16 15:42:25 -05:00
using namespace std;
2013-05-16 15:42:25 -05:00
vector<string> makeCodeParts(string l);
void trim2(string& str);
static long parseLong(string s);
static long parseHexLong(string s);
class CheatsGUI {
private:
static long const serialVersionUID = 6791588139795694296L;
static long const int cheatsThreadSleepMillis = 5;
bool cheatsOn;
std::vector<std::string> codes;
int currentCode;
bool exit2;
void skipCodes(int count);
void skipAllCodes();
int getAddress(int value);
2013-05-18 03:21:57 -05:00
bool test;
2013-05-16 15:42:25 -05:00
public:
CheatsGUI();
string String();
void AddCheatLine(string& line);
void OnCheatsThreadEnded();
void Dispose();
vector<string> GetCodesList();
void Exit();
void Run();
string GetNextCode();
2013-05-16 15:42:25 -05:00
};