1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-20 23:17:45 +00:00

When failing to parse a packet segment, print it's size

This can be helpful to determine what the heck this opcode is.
This commit is contained in:
Joshua Goins 2025-06-19 16:07:39 -04:00
parent 355572d97a
commit 777cb8b2a3

View file

@ -132,6 +132,7 @@ pub struct PacketSegment<T: ReadWriteIpcSegment> {
#[brw(pad_after = 2)] // padding
pub segment_type: SegmentType,
#[brw(args(&segment_type, size, encryption_key))]
#[br(err_context("segment size = {}", size))]
pub data: SegmentData<T>,
}