Parse world header into individual fields

This commit is contained in:
2024-04-07 02:23:03 -07:00
parent 9e2eb5a07b
commit 4363fd04ac
2 changed files with 89 additions and 23 deletions
+1
View File
@@ -37,6 +37,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// Try to write a modified world file
world.boards.reverse();
world.starting_board = (world.boards.len() as i16 - 1) - world.starting_board;
fs::write("tmp.zzt", world.to_bytes()?)?;
Ok(())