(Assuming that the pk3 file is unzipped locally)
extern crate bsp;
use std::fs::File;
fn main() -> std::io::Result<()> {
let bsp = bsp::read_bsp(&File::open("pak0/maps/q3dm1.bsp")?)?;
println!("{:?}", bsp);
Ok(())
}
Crate to load BSP files efficiently - currently only works for Quake 3 BSP files. Fork of `quake3_loader` crate.
RustMIT