Compare commits

...

2 Commits

Author SHA1 Message Date
dcdaef82c5 Merge pull request 'more quiet' (#26) from quieter2 into master
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #26
2023-02-03 00:01:19 -05:00
0a9e10bee9 more quiet
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-01-31 10:15:15 -07:00
2 changed files with 10 additions and 1 deletions

View File

@ -109,7 +109,7 @@ impl PSOPacketData for String {
}
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Clone, PartialEq)]
pub struct ConsumingBlob {
pub blob: Vec<u8>,
}
@ -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<Self, PacketParseError> where Self: Sized;

View File

@ -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,