From f2ec5d44bd48c9b8b5412ed408bfea909c57f9e5 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Thu, 23 Apr 2020 12:07:45 +0100 Subject: [PATCH] add line endings property so we can convert later --- src/game.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.rs b/src/game.rs index 14c6e0a..c61e03d 100644 --- a/src/game.rs +++ b/src/game.rs @@ -39,6 +39,7 @@ pub struct Game { pub endings: Vec, pub variables: Vec, pub font_data: Option, // todo make this an actual struct for parsing + pub(crate) line_endings_crlf: bool, // otherwise lf (unix/mac) } impl Game { @@ -168,6 +169,7 @@ impl Game { endings, variables, font_data, + line_endings_crlf: false }) } }