From 5ec99a75dcbb311e549818736ed99c84a993ad69 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 26 Jul 2024 16:15:36 -0700 Subject: [PATCH] no external resources --- src/map.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/map.rs b/src/map.rs index c3c20f7..d5fa2f0 100644 --- a/src/map.rs +++ b/src/map.rs @@ -233,26 +233,26 @@ fn read_modes(len:usize,input:&mut R)->Result(input:&mut R)->Result{ let num_spacial_blocks:u32=input.read_le()?; let num_resource_blocks:u32=input.read_le()?; - let num_resources_external:u32=input.read_le()?; + //let num_resources_external:u32=input.read_le()?; let num_modes:u32=input.read_le()?; let num_attributes:u32=input.read_le()?; let num_render_configs:u32=input.read_le()?; let spacial_blocks:Vec=read_vec(num_spacial_blocks as usize,input)?; let resource_blocks:Vec=read_vec(num_resource_blocks as usize,input)?; - let external_resources:Vec=read_vec(num_resources_external as usize,input)?; + //let external_resources:Vec=read_vec(num_resources_external as usize,input)?; let modes:Vec=read_modes(num_modes as usize,input)?; let attributes:Vec=read_vec(num_attributes as usize,input)?; let render_configs:Vec=read_vec(num_render_configs as usize,input)?; Ok(MapHeader{ num_spacial_blocks, num_resource_blocks, - num_resources_external, + //num_resources_external, num_modes, num_attributes, num_render_configs, spacial_blocks, resource_blocks, - external_resources, + //external_resources, modes, attributes, render_configs, @@ -431,13 +431,13 @@ fn write_modes(modes:&Vec(map_header:&MapHeader,output:&mut W)->Result<(),binrw::Error>{ map_header.num_spacial_blocks.write_le(output)?; map_header.num_resource_blocks.write_le(output)?; - map_header.num_resources_external.write_le(output)?; + //map_header.num_resources_external.write_le(output)?; map_header.num_modes.write_le(output)?; map_header.num_attributes.write_le(output)?; map_header.num_render_configs.write_le(output)?; map_header.spacial_blocks.write_le(output)?; map_header.resource_blocks.write_le(output)?; - map_header.external_resources.write_le(output)?; + //map_header.external_resources.write_le(output)?; write_modes(&map_header.modes,output)?; map_header.attributes.write_le(output)?; map_header.render_configs.write_le(output)?; @@ -583,7 +583,7 @@ pub fn write_map(mut writer:W,map:strafesnet_common::map::Comple println!("map header len={}",map_header_data.len()); println!("num_spacial_blocks={}",map_header.num_spacial_blocks); println!("num_resource_blocks={}",map_header.num_resource_blocks); - println!("num_resources_external={}",map_header.num_resources_external); + //println!("num_resources_external={}",map_header.num_resources_external); println!("num_modes={}",map_header.num_modes); println!("num_attributes={}",map_header.num_attributes); println!("num_render_configs={}",map_header.num_render_configs);