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

Merged
jake merged 2 commits from unitxt into master 3 years ago
  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