mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-04 02:24:12 +02:00
fixes
This commit is contained in:
parent
1b1878a77b
commit
deb3375ac7
11 changed files with 97 additions and 32 deletions
|
|
@ -13,7 +13,7 @@ impl BitRead<LittleEndian> for ConsoleCmdPacket {
|
|||
let tick = stream.read_int(32)?;
|
||||
let len = stream.read_int::<usize>(32)?;
|
||||
let mut packet_data = stream.read_bits(len * 8)?;
|
||||
let command = packet_data.read_string(None)?;
|
||||
let command = packet_data.read_string(Some(len))?;
|
||||
Ok(ConsoleCmdPacket { tick, command })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ pub struct ExtraData {
|
|||
pub data: Stream,
|
||||
}
|
||||
|
||||
#[derive(BitRead, Clone)]
|
||||
#[derive(BitRead, Clone, Default)]
|
||||
#[endianness = "LittleEndian"]
|
||||
pub struct StringTableEntry {
|
||||
pub text: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue