Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
LaihoE committed Nov 25, 2023
2 parents 9526875 + 0fac526 commit f152375
Show file tree
Hide file tree
Showing 11 changed files with 364 additions and 122 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
target: [x86, x64]
defaults:
run:
Expand All @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
target: [x86_64, aarch64]
defaults:
run:
Expand All @@ -62,7 +62,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
target: [x86_64, aarch64]
defaults:
run:
Expand Down
5 changes: 0 additions & 5 deletions src/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,5 @@
"test": "jest",
"universal": "napi universal",
"version": "napi version"
},
"packageManager": "[email protected]",
"dependencies": {
"archiver": "^6.0.1",
"unzipper": "^0.10.14"
}
}
17 changes: 13 additions & 4 deletions src/parser/src/parser_threads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ impl<'a> ParserThread<'a> {
DEM_Packet => self.parse_packet(&bytes, &mut buf),
DEM_FullPacket => {
match self.parse_all_packets {
true => {}
true => {
self.parse_full_packet(&bytes, false)?;
}
false => {
if self.fullpackets_parsed == 0 && started_at != 16 {
self.parse_full_packet(&bytes)?;
self.parse_full_packet(&bytes, true)?;
self.fullpackets_parsed += 1;
} else {
break;
Expand Down Expand Up @@ -125,7 +127,9 @@ impl<'a> ParserThread<'a> {
self.net_tick = message.tick();
Ok(())
}
pub fn parse_full_packet(&mut self, bytes: &[u8]) -> Result<(), DemoParserError> {
pub fn parse_full_packet(&mut self, bytes: &[u8], should_parse_entities: bool) -> Result<(), DemoParserError> {
self.string_tables = vec![];

let full_packet: CDemoFullPacket = match Message::parse_from_bytes(bytes) {
Err(_e) => return Err(DemoParserError::MalformedMessage),
Ok(p) => p,
Expand Down Expand Up @@ -161,7 +165,12 @@ impl<'a> ParserThread<'a> {
let msg_bytes = &buf[..size as usize];

let ok = match netmessage_type_from_int(msg_type as i32) {
svc_PacketEntities => self.parse_packet_ents(&msg_bytes),
svc_PacketEntities => {
if should_parse_entities {
self.parse_packet_ents(&msg_bytes)?;
}
Ok(())
}
svc_CreateStringTable => self.parse_create_stringtable(&msg_bytes),
svc_UpdateStringTable => self.update_string_table(&msg_bytes),
CS_UM_SendPlayerItemDrops => self.parse_item_drops(&msg_bytes),
Expand Down
2 changes: 1 addition & 1 deletion src/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=0.13,<0.14"]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"

[project]
Expand Down
98 changes: 21 additions & 77 deletions src/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f152375

Please sign in to comment.