Skip to content

Commit

Permalink
fix tests and reoder packets
Browse files Browse the repository at this point in the history
  • Loading branch information
LaihoE committed Oct 24, 2023
1 parent 8fda59d commit 30ec878
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Binary file modified src/node/tests/zipped_testdata.zip
Binary file not shown.
9 changes: 5 additions & 4 deletions src/parser/src/parser_threads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ impl ParserThread {
}
fn packet_orderer(&self, packet: &NetmessageType) -> i32 {
match packet {
svc_PacketEntities => 0,
svc_CreateStringTable => 1,
svc_UpdateStringTable => 2,
_ => 100,
svc_CreateStringTable => 1001,
svc_UpdateStringTable => 1000,
GE_Source1LegacyGameEvent => 999,
svc_PacketEntities => 90,
_ => 0,
}
}
pub fn parse_packet(&mut self, bytes: &[u8]) -> Result<(), DemoParserError> {
Expand Down
Binary file modified src/python/tests/zipped_testdata.zip
Binary file not shown.

0 comments on commit 30ec878

Please sign in to comment.