From 1b4590c13be299ae141e33137925643c788e2246 Mon Sep 17 00:00:00 2001 From: andy Date: Tue, 15 Feb 2022 02:12:08 +0000 Subject: [PATCH] change patch chunk size to 24kb for the client and remove duplicate --- src/packet/login.rs | 1 - src/packet/patch.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/packet/login.rs b/src/packet/login.rs index 7a506fd..19b4ed4 100644 --- a/src/packet/login.rs +++ b/src/packet/login.rs @@ -7,7 +7,6 @@ use crate::character::character::SelectScreenCharacter; use std::io::Read; -pub const PATCH_FILE_CHUNK_SIZE: u16 = 0x8000; // 32kb pub const GUILD_CARD_CHUNK_SIZE: usize = 0x6800; pub const PARAM_DATA_CHUNK_SIZE: usize = 0x6800; diff --git a/src/packet/patch.rs b/src/packet/patch.rs index c008f2a..4339d34 100644 --- a/src/packet/patch.rs +++ b/src/packet/patch.rs @@ -3,7 +3,7 @@ use crate::{PSOPacket, PacketParseError, PSOPacketData}; use std::io::Read; -pub const PATCH_FILE_CHUNK_SIZE: u16 = 0x8000; // 32kb +pub const PATCH_FILE_CHUNK_SIZE: u16 = 0x6000; // 24kb #[allow(non_camel_case_types)] type u8_str = u8; -- 2.36.0