From fc28449e191537a908154a50fbb4b9b6f11670a3 Mon Sep 17 00:00:00 2001 From: clayamore Date: Fri, 21 Jun 2024 16:44:29 +0200 Subject: [PATCH] DLC compatibility --- src/save/save.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/save/save.rs b/src/save/save.rs index b8f8ea2..46f690a 100644 --- a/src/save/save.rs +++ b/src/save/save.rs @@ -10,7 +10,7 @@ pub mod save { }; // Using a checksum of the regulation bin file to check for Save Wizard .txt save file - const REGULATION_MD5_CHECKSUM: [u8; 0x10] = [0x9D, 0xE4, 0x83, 0x80, 0x78, 0xB2, 0x28, 0x9D, 0x83, 0x8D, 0x28, 0x7A, 0x24, 0x31, 0xE6, 0x45]; + const REGULATION_MD5_CHECKSUM: [u8; 0x10] =[0x2E, 0x88, 0x1A, 0x15, 0xAC, 0x05, 0x88, 0x8D, 0xF2, 0xC2, 0x6A, 0xEC, 0xC2, 0x90, 0x89, 0x23]; pub enum SaveType { Unknown, @@ -825,8 +825,8 @@ pub mod save { // Check if it's a PS Save Wizard save file pub fn is_ps_save_wizard(br: &mut BinaryReader) -> bool { - br.jmp(0x1960080); - let regulation = br.read_bytes(0x1c5f70).expect(""); + br.jmp(0x1960070); + let regulation = br.read_bytes(0x240010).expect(""); let digest = md5::compute(regulation); let is_ps_save_wizard = digest == md5::Digest(REGULATION_MD5_CHECKSUM); br.jmp(0);