1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

comments in the config file

This commit is contained in:
Zeno Rogue 2017-12-14 02:49:32 +01:00
parent 653069094b
commit 1a845e0c3f

View File

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