ifstream constructor takes a c string

This commit is contained in:
Jake Traynham 2013-05-30 21:23:28 -05:00
parent dc25d42eca
commit 7dc90fcc49

View File

@ -167,7 +167,7 @@ std::vector<std::string> CWCheatEngine::GetCodesList() {
char* skip = "//";
std::vector<std::string> codesList; // Read from INI here
std::ifstream list(title3);
std::ifstream list(title3.c_str());
for (int i = 0; !list.eof(); i ++) {
getline(list, line, '\n');
if (line.substr(0,2) == skip) {