mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 18:54:05 +02:00
Update readme.md
Update readme for 0.2.0
This commit is contained in:
parent
e6f20f03e1
commit
2af26e5245
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#Example usage
|
# Example usage
|
||||||
|
|
||||||
(Assuming that the pk3 file is unzipped locally)
|
(Assuming that the pk3 file is unzipped locally)
|
||||||
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
let mut file = File::open(path).unwrap();
|
let mut file = File::open(path).unwrap();
|
||||||
let mut bytes = Vec::new();
|
let mut bytes = Vec::new();
|
||||||
file.read_to_end(&mut bytes).unwrap();
|
file.read_to_end(&mut bytes).unwrap();
|
||||||
let bsp = quake3_loader::read_bsp(bytes);
|
let bsp = quake3_loader::read_bsp(&bytes);
|
||||||
println!("{:?}", bsp);
|
println!("{:?}", bsp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue