MCPcopy Create free account
hub / github.com/AdRoll/rustenstein / load_maps

Function load_maps

src/cache.rs:386–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

384}
385
386fn 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
391fn parse_map_head<P: AsRef<Path>>(path: P) -> MapHead {
392 let raw_data = fs::read(path).expect("could not read MAPHEAD file");

Callers 3

initFunction · 0.85
map_file_parsingFunction · 0.85

Calls 2

parse_map_headFunction · 0.85
parse_map_dataFunction · 0.85

Tested by

no test coverage detected