document this odd if statement
This commit is contained in:
parent
632aaff4b9
commit
7405090009
|
@ -122,6 +122,10 @@ impl Game {
|
|||
|
||||
let mut name = "".to_string();
|
||||
|
||||
// game names can be empty - so when we strip out the leading whitespace above,
|
||||
// it means that the first segment might not be the game name.
|
||||
// so, check if the first segment is actually the next segment of game data
|
||||
// to avoid setting the game name to "# BITSY VERSION 7.0" or something
|
||||
if
|
||||
segments[0].starts_with("\"\"\"") // multi-line game name
|
||||
||
|
||||
|
|
Loading…
Reference in New Issue