From 7fc185f614a5658fa89899711d0893891770b1ee Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 22 Feb 2024 15:00:04 +0900 Subject: [PATCH] Change SaveData identifier due to changed de/ser. --- src/original_impl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/original_impl.rs b/src/original_impl.rs index c7f1179..9215465 100644 --- a/src/original_impl.rs +++ b/src/original_impl.rs @@ -1749,7 +1749,7 @@ struct SaveData { joining_particles: RotatingParticleSystem, } -const SAVE_DATA_IDENTIFIER: [u8; 4] = [0x53, 0x41, 0x56, 0x45]; +const SAVE_DATA_IDENTIFIER: [u8; 8] = [0x53, 0x41, 0x56, 0x45, 'V' as u8, 'e' as u8, 'r' as u8, 1]; impl SaveData { pub fn deserialize(data: &[u8]) -> Result<(SaveData, usize), ()> {