diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp index 727fd7d5024a..6ef40c749894 100644 --- a/Core/CwCheat.cpp +++ b/Core/CwCheat.cpp @@ -269,10 +269,7 @@ inline void trim2(std::string& str) { else str.erase(str.begin(), str.end()); } -std::vector CWCheatEngine::GetCodesList(std::string file) { //Reads the entire cheat list from the appropriate .ini. - if (file.empty()) { - file = activeCheatFile; - } +std::vector CWCheatEngine::GetCodesList() { //Reads the entire cheat list from the appropriate .ini. std::string line; std::vector codesList; // Read from INI here #ifdef _WIN32 diff --git a/Core/CwCheat.h b/Core/CwCheat.h index 29463604a617..be8b27be9f02 100644 --- a/Core/CwCheat.h +++ b/Core/CwCheat.h @@ -21,7 +21,7 @@ bool CheatsInEffect(); class CWCheatEngine { public: CWCheatEngine(); - std::vector GetCodesList(std::string file = ""); + std::vector GetCodesList(); void CreateCodeList(); void CreateCheatFile(); void Exit(); diff --git a/UI/CwCheatScreen.cpp b/UI/CwCheatScreen.cpp index bc79389a0cba..23c55effead2 100644 --- a/UI/CwCheatScreen.cpp +++ b/UI/CwCheatScreen.cpp @@ -68,7 +68,7 @@ void CwCheatScreen::CreateCodeList() { } cheatEngine2 = new CWCheatEngine(); cheatEngine2->CreateCheatFile(); - cheatList = cheatEngine2->GetCodesList(activeCheatFile); + cheatList = cheatEngine2->GetCodesList(); bEnableCheat.clear(); formattedList_.clear();