Browse Source

oops

master
despair 5 years ago
parent
commit
632e5e8fcc
  1. 4
      src/CFGFileParser.cpp

4
src/CFGFileParser.cpp

@ -50,9 +50,7 @@ void CFGFileParser::ParseText() { @@ -50,9 +50,7 @@ void CFGFileParser::ParseText() {
tmp = reinterpret_cast<char*>(45); // just some random junk to avoid breaking out in the first iteration
// how about an array of keys, and of values? where key[i] and value[i] are correspondent
while (tmp != nullptr){
key = strtok_r(directives, ":", &tmp);
value = strtok_r(nullptr, "\t", &tmp);
cfg->Settings.insert({key,value});
// separate key and value here, will write up in the morning
}
}

Loading…
Cancel
Save