()
| 384 | } |
| 385 | |
| 386 | fn load_maps() -> Vec<Map> { |
| 387 | let map_metadata = parse_map_head(DATADIR.to_owned() + "/MAPHEAD.WL1"); |
| 388 | parse_map_data(DATADIR.to_owned() + "/GAMEMAPS.WL1", map_metadata) |
| 389 | } |
| 390 | |
| 391 | fn parse_map_head<P: AsRef<Path>>(path: P) -> MapHead { |
| 392 | let raw_data = fs::read(path).expect("could not read MAPHEAD file"); |
no test coverage detected