update deps

This commit is contained in:
Quaternions 2024-10-01 17:16:56 -07:00
parent 2b77ea5712
commit b7000ee9af
3 changed files with 684 additions and 206 deletions

862
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -9,22 +9,22 @@ edition = "2021"
anyhow = "1.0.75" anyhow = "1.0.75"
clap = { version = "4.4.2", features = ["derive"] } clap = { version = "4.4.2", features = ["derive"] }
flate2 = "1.0.27" flate2 = "1.0.27"
image = "0.24.7" image = "0.25.2"
image_dds = "0.1.1" image_dds = "0.6.0"
lazy-regex = "3.1.0" lazy-regex = "3.1.0"
rbx_binary = { version = "0.7.4", registry = "strafesnet" } rbx_binary = { version = "0.7.4", registry = "strafesnet" }
rbx_dom_weak = { version = "2.7.0", registry = "strafesnet" } rbx_dom_weak = { version = "2.7.0", registry = "strafesnet" }
rbx_reflection_database = { version = "0.2.10", registry = "strafesnet" } rbx_reflection_database = { version = "0.2.10", registry = "strafesnet" }
rbx_xml = { version = "0.13.3", registry = "strafesnet" } rbx_xml = { version = "0.13.3", registry = "strafesnet" }
strafesnet_bsp_loader = { version = "0.1.3", registry = "strafesnet" } strafesnet_bsp_loader = { version = "0.2.1", registry = "strafesnet" }
strafesnet_deferred_loader = { version = "0.3.4", features = ["legacy"], registry = "strafesnet" } strafesnet_deferred_loader = { version = "0.4.0", features = ["legacy"], registry = "strafesnet" }
strafesnet_rbx_loader = { version = "0.3.6", registry = "strafesnet" } strafesnet_rbx_loader = { version = "0.4.1", registry = "strafesnet" }
strafesnet_snf = { version = "0.1.0", registry = "strafesnet" } strafesnet_snf = { version = "0.2.0", registry = "strafesnet" }
vbsp = "0.5.0" vbsp = "0.6.0"
vmdl = "0.1.1" vmdl = "0.2.0"
vmt-parser = "0.1.1" vmt-parser = "0.2.0"
vpk = "0.2.0" vpk = "0.2.0"
vtf = "0.2.1" vtf = "0.3.0"
#[profile.release] #[profile.release]
#lto = true #lto = true

View File

@ -307,9 +307,9 @@ fn convert(file_thing:std::fs::DirEntry) -> AResult<()>{
}?.to_rgba8();//this sets a=255, arcane is actually supposed to look like that }?.to_rgba8();//this sets a=255, arcane is actually supposed to look like that
let format=if image.width()%4!=0||image.height()%4!=0{ let format=if image.width()%4!=0||image.height()%4!=0{
image_dds::ImageFormat::R8G8B8A8Srgb image_dds::ImageFormat::Rgba8UnormSrgb
}else{ }else{
image_dds::ImageFormat::BC7Srgb image_dds::ImageFormat::BC7RgbaUnormSrgb
}; };
//this fails if the image dimensions are not a multiple of 4 //this fails if the image dimensions are not a multiple of 4
let dds = image_dds::dds_from_image( let dds = image_dds::dds_from_image(
@ -546,9 +546,9 @@ fn extract_textures(paths:Vec<PathBuf>,vpk_paths:Vec<PathBuf>)->AResult<()>{
let image=vtf::from_bytes(&mut stuff)?.highres_image.decode(0)?.to_rgba8(); let image=vtf::from_bytes(&mut stuff)?.highres_image.decode(0)?.to_rgba8();
let format=if image.width()%4!=0||image.height()%4!=0{ let format=if image.width()%4!=0||image.height()%4!=0{
image_dds::ImageFormat::R8G8B8A8Srgb image_dds::ImageFormat::Rgba8UnormSrgb
}else{ }else{
image_dds::ImageFormat::BC7Srgb image_dds::ImageFormat::BC7RgbaUnormSrgb
}; };
//this fails if the image dimensions are not a multiple of 4 //this fails if the image dimensions are not a multiple of 4
let dds = image_dds::dds_from_image( let dds = image_dds::dds_from_image(