Browse Source

change patch chunk size to 24kb for the client and remove duplicate

pull/20/head
andy 3 years ago
parent
commit
1b4590c13b
  1. 1
      src/packet/login.rs
  2. 2
      src/packet/patch.rs

1
src/packet/login.rs

@ -7,7 +7,6 @@ use crate::character::character::SelectScreenCharacter;
use std::io::Read; use std::io::Read;
pub const PATCH_FILE_CHUNK_SIZE: u16 = 0x8000; // 32kb
pub const GUILD_CARD_CHUNK_SIZE: usize = 0x6800; pub const GUILD_CARD_CHUNK_SIZE: usize = 0x6800;
pub const PARAM_DATA_CHUNK_SIZE: usize = 0x6800; pub const PARAM_DATA_CHUNK_SIZE: usize = 0x6800;

2
src/packet/patch.rs

@ -3,7 +3,7 @@ use crate::{PSOPacket, PacketParseError, PSOPacketData};
use std::io::Read; 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)] #[allow(non_camel_case_types)]
type u8_str = u8; type u8_str = u8;

Loading…
Cancel
Save