comments in the config file

This commit is contained in:
Zeno Rogue 2017-12-14 02:49:32 +01:00
parent 653069094b
commit 1a845e0c3f
1 changed files with 1 additions and 0 deletions

View File

@ -504,6 +504,7 @@ void loadOldConfig(FILE *f) {
map<string, shared_ptr<supersaver> > allconfigs;
void parseline(const string& str) {
if(str[0] == '#') return;
for(int i=0; i<size(str); i++) if(str[i] == '=') {
string cname = str.substr(0, i);
if(!allconfigs.count(cname)) {