1
0
Fork 0
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:
Robin Appelman 2019-12-22 16:50:31 +01:00
commit 2306fa5d17
7 changed files with 74 additions and 14 deletions

View file

@ -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);