From 0a9e10bee918c63df57e8d30ded95904ef36cea5 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 31 Jan 2023 10:15:15 -0700 Subject: [PATCH] more quiet --- src/lib.rs | 10 +++++++++- src/packet/ship.rs | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 9522f3b..b59322f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -109,7 +109,7 @@ impl PSOPacketData for String { } } -#[derive(Debug, Clone, PartialEq)] +#[derive(Clone, PartialEq)] pub struct ConsumingBlob { pub blob: Vec, } @@ -127,6 +127,14 @@ impl PSOPacketData for ConsumingBlob { } } +impl std::fmt::Debug for ConsumingBlob { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("ConsumingBlob") + .field("blob", &"[...]") + .finish() + } +} + pub trait PSOPacket: std::fmt::Debug { // const CMD: u16; fn from_bytes(data: &[u8]) -> Result where Self: Sized; diff --git a/src/packet/ship.rs b/src/packet/ship.rs index 7790eb4..c37f64c 100644 --- a/src/packet/ship.rs +++ b/src/packet/ship.rs @@ -570,6 +570,7 @@ pub struct QuestFileRequest { pub struct QuestChunk { pub chunk_num: u32, pub filename: [u8; 16], + #[nodebug] pub blob: [u8; 0x400], pub blob_length: u32, pub unknown: u32, -- 2.36.0