mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 10:44:07 +02:00
examples
This commit is contained in:
parent
5e859b00f0
commit
c1349950a2
2 changed files with 10 additions and 6 deletions
8
examples/parse.rs
Normal file
8
examples/parse.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
fn main() -> Result<(), vbsp::BspError> {
|
||||
let mut args = std::env::args();
|
||||
let _ = args.next();
|
||||
let data = std::fs::read(args.next().unwrap())?;
|
||||
let _ = vbsp::Bsp::read(&data)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue