Fixed pull 4510, this should work.

This commit is contained in:
pal1000 2013-11-11 17:14:21 +02:00
parent 6e67494db0
commit 5efc4474b0

View File

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