mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
finish api changes and rawpacketstream
This commit is contained in:
parent
42358f243b
commit
2306fa5d17
7 changed files with 74 additions and 14 deletions
|
|
@ -118,8 +118,9 @@ impl MessageHandler for EntityDumper {
|
|||
fn entity_test(input_file: &str, snapshot_file: &str) {
|
||||
let file = fs::read(input_file).expect("Unable to read file");
|
||||
let demo = Demo::new(file);
|
||||
let (_, entities) =
|
||||
DemoParser::new_with_analyser(demo.get_stream(), EntityDumper::new()).unwrap();
|
||||
let (_, entities) = DemoParser::new_with_analyser(demo.get_stream(), EntityDumper::new())
|
||||
.parse()
|
||||
.unwrap();
|
||||
|
||||
let json_file = File::open(snapshot_file).expect("Unable to read file");
|
||||
let mut reader = BufReader::new(json_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue