Ooops;3, remove leftover
This commit is contained in:
parent
27a616c765
commit
101df1da2b
3 changed files with 3 additions and 6 deletions
|
@ -269,10 +269,7 @@ inline void trim2(std::string& str) {
|
||||||
else str.erase(str.begin(), str.end());
|
else str.erase(str.begin(), str.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> CWCheatEngine::GetCodesList(std::string file) { //Reads the entire cheat list from the appropriate .ini.
|
std::vector<std::string> CWCheatEngine::GetCodesList() { //Reads the entire cheat list from the appropriate .ini.
|
||||||
if (file.empty()) {
|
|
||||||
file = activeCheatFile;
|
|
||||||
}
|
|
||||||
std::string line;
|
std::string line;
|
||||||
std::vector<std::string> codesList; // Read from INI here
|
std::vector<std::string> codesList; // Read from INI here
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
|
@ -21,7 +21,7 @@ bool CheatsInEffect();
|
||||||
class CWCheatEngine {
|
class CWCheatEngine {
|
||||||
public:
|
public:
|
||||||
CWCheatEngine();
|
CWCheatEngine();
|
||||||
std::vector<std::string> GetCodesList(std::string file = "");
|
std::vector<std::string> GetCodesList();
|
||||||
void CreateCodeList();
|
void CreateCodeList();
|
||||||
void CreateCheatFile();
|
void CreateCheatFile();
|
||||||
void Exit();
|
void Exit();
|
||||||
|
|
|
@ -68,7 +68,7 @@ void CwCheatScreen::CreateCodeList() {
|
||||||
}
|
}
|
||||||
cheatEngine2 = new CWCheatEngine();
|
cheatEngine2 = new CWCheatEngine();
|
||||||
cheatEngine2->CreateCheatFile();
|
cheatEngine2->CreateCheatFile();
|
||||||
cheatList = cheatEngine2->GetCodesList(activeCheatFile);
|
cheatList = cheatEngine2->GetCodesList();
|
||||||
|
|
||||||
bEnableCheat.clear();
|
bEnableCheat.clear();
|
||||||
formattedList_.clear();
|
formattedList_.clear();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue