1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 10:44:07 +02:00

Update readme

This commit is contained in:
Jef 2019-04-09 16:52:43 +02:00
commit d9e3d3c984

View file

@ -3,12 +3,14 @@
(Assuming that the pk3 file is unzipped locally)
```rust
extern crate quake3_loader;
use std::fs::{File};
extern crate bsp;
fn main() {
let mut file = File::open("pak0/maps/q3dm1.bsp").unwrap();
let bsp = quake3_loader::read_bsp(&file);
use std::fs::File;
fn main() -> std::io::Result<()> {
let bsp = bsp::read_bsp(&File::open("pak0/maps/q3dm1.bsp")?)?;
println!("{:?}", bsp);
Ok(())
}
```