mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2024-05-20 05:40:49 -04:00
database entries can be commented out with a leading # character
This commit is contained in:
parent
290b2c8500
commit
f7f835b4b7
|
@ -179,6 +179,11 @@ func (db *Session) readDBFile() error {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// comment line
|
||||||
|
if strings.HasPrefix(lines[i], "#") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// loop through file until EOF is reached
|
// loop through file until EOF is reached
|
||||||
fields := strings.SplitN(lines[i], fieldSep, numLeaderFields+1)
|
fields := strings.SplitN(lines[i], fieldSep, numLeaderFields+1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue