mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
comments in the config file
This commit is contained in:
parent
653069094b
commit
1a845e0c3f
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user