mirror of
https://github.com/JetSetIlly/Gopher2600.git
synced 2024-05-09 17:04:03 -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
|
||||
}
|
||||
|
||||
// comment line
|
||||
if strings.HasPrefix(lines[i], "#") {
|
||||
continue
|
||||
}
|
||||
|
||||
// loop through file until EOF is reached
|
||||
fields := strings.SplitN(lines[i], fieldSep, numLeaderFields+1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue