Merge pull request #3961 from makotech222/cwcheat

Fix Bug with GetCodesList skipping lines that don't contain 8 characters...
This commit is contained in:
Henrik Rydgård 2013-09-28 13:47:32 -07:00
commit 605b3c8cc0

View file

@ -192,7 +192,7 @@ std::vector<std::string> CWCheatEngine::GetCodesList() { //Reads the entire chea
std::ifstream list(activeCheatFile.c_str());
for (int i = 0; !list.eof(); i ++) {
getline(list, line, '\n');
if (line.length() > 8){
if (line.length() > 3 && line.substr(0,1) == "_"){
codesList.push_back(line);
}
}