Support for loading 0.9.x.x beta saves
This commit is contained in:
parent
6c9b4d9a54
commit
7f33f7b6c8
|
@ -315,8 +315,9 @@ impl GameProfile {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn load_from_save<R: io::Read>(mut data: R) -> GameResult<GameProfile> {
|
pub fn load_from_save<R: io::Read>(mut data: R) -> GameResult<GameProfile> {
|
||||||
// Do041220
|
let magic = data.read_u64::<BE>()?;
|
||||||
if data.read_u64::<BE>()? != 0x446f303431323230 {
|
// Do041220, Do041115
|
||||||
|
if magic != 0x446f303431323230 && magic != 0x446f303431313135 {
|
||||||
return Err(ResourceLoadError("Invalid magic".to_owned()));
|
return Err(ResourceLoadError("Invalid magic".to_owned()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue