special treatment of multi-line game name
This commit is contained in:
parent
febb04fc09
commit
3e985962c8
|
@ -101,6 +101,9 @@ impl Game {
|
||||||
let mut name = "".to_string();
|
let mut name = "".to_string();
|
||||||
|
|
||||||
if
|
if
|
||||||
|
segments[0].starts_with("\"\"\"") // multi-line game name
|
||||||
|
||
|
||||||
|
(
|
||||||
! segments[0].starts_with("# BITSY VERSION ")
|
! segments[0].starts_with("# BITSY VERSION ")
|
||||||
&&
|
&&
|
||||||
! segments[0].starts_with("! ROOM_FORMAT ")
|
! segments[0].starts_with("! ROOM_FORMAT ")
|
||||||
|
@ -109,7 +112,9 @@ impl Game {
|
||||||
&&
|
&&
|
||||||
! segments[0].starts_with("DEFAULT_FONT ")
|
! segments[0].starts_with("DEFAULT_FONT ")
|
||||||
&&
|
&&
|
||||||
! segments[0].starts_with("TEXT_DIRECTION ") {
|
! segments[0].starts_with("TEXT_DIRECTION ")
|
||||||
|
)
|
||||||
|
{
|
||||||
name = segments[0].to_string();
|
name = segments[0].to_string();
|
||||||
segments = segments[1..].to_owned();
|
segments = segments[1..].to_owned();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue