mindustry logic execution, map- and schematic- parsing and rendering
Diffstat (limited to 'src/exe/draw.rs')
| -rw-r--r-- | src/exe/draw.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exe/draw.rs b/src/exe/draw.rs index 3352af0..c7de323 100644 --- a/src/exe/draw.rs +++ b/src/exe/draw.rs @@ -6,6 +6,7 @@ use std::env::Args; use crate::print_err; pub fn main(args: Args) { + unsafe { mindus::warmup() }; let reg = build_registry(); let mut ss = SchematicSerializer(®); @@ -13,7 +14,7 @@ pub fn main(args: Args) { for curr in args { match ss.deserialize_base64(&curr) { Ok(s) => { - s.render().save("x.png").unwrap(); + unsafe { s.render() }.save("x.png").unwrap(); } // continue processing literals & maybe interactive mode Err(e) => { |