mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 09:30:35 +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;
|
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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user