Skip to content

Commit

Permalink
Ooops;3, remove leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaMoo committed Jun 21, 2016
1 parent 27a616c commit 101df1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions Core/CwCheat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,7 @@ inline void trim2(std::string& str) {
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.
if (file.empty()) {
file = activeCheatFile;
}
std::vector<std::string> CWCheatEngine::GetCodesList() { //Reads the entire cheat list from the appropriate .ini.
std::string line;
std::vector<std::string> codesList; // Read from INI here
#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion Core/CwCheat.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ bool CheatsInEffect();
class CWCheatEngine {
public:
CWCheatEngine();
std::vector<std::string> GetCodesList(std::string file = "");
std::vector<std::string> GetCodesList();
void CreateCodeList();
void CreateCheatFile();
void Exit();
Expand Down
2 changes: 1 addition & 1 deletion UI/CwCheatScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void CwCheatScreen::CreateCodeList() {
}
cheatEngine2 = new CWCheatEngine();
cheatEngine2->CreateCheatFile();
cheatList = cheatEngine2->GetCodesList(activeCheatFile);
cheatList = cheatEngine2->GetCodesList();

bEnableCheat.clear();
formattedList_.clear();
Expand Down

0 comments on commit 101df1d

Please sign in to comment.