diff --git a/Cargo.lock b/Cargo.lock index 8d4e5d2..19320ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -841,7 +841,7 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "vtfx_reader" -version = "1.1.0" +version = "1.2.0" dependencies = [ "bswap", "clap", diff --git a/Cargo.toml b/Cargo.toml index c561666..924bf75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "vtfx_reader" -version = "1.1.0" +version = "1.2.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/readme.md b/readme.md index 75ec7fd..a106bac 100644 --- a/readme.md +++ b/readme.md @@ -13,7 +13,18 @@ A tool to read the header + output image resources (as png) from a [VTFX file](h - DXT1 - DXT5 - RGBA16161616 -- +- BGRX8888 +- RGBA8888 +- ABGR8888 +- RGB888 +- BGR888 +- ARGB8888 +- BGRA8888 + +Untested support for: + +- LINEAR_BGRX8888. + Compressed (LZMA) and non compressed images are supported. By default alpha is not exported, but can be enabled with the ``--export-alpha`` argument. ## How to use @@ -42,6 +53,6 @@ Download the latest release and run, using the arguments listed below to specify Auto open exported images ## Compiling -To compile from source, install the rust tooling [rustup](https://rustup.rs/), then use ``cargo to run`` and build the project. +To compile from source, install the rust tooling [rustup](https://rustup.rs/), then use ``cargo run`` and build the project. [texpresso](https://crates.io/crates/texpresso) is used to decode dxt data, and [lzma-rs](https://crates.io/crates/lzma-rs) for lzma decompression. diff --git a/src/main.rs b/src/main.rs index d424abd..dbd63ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,9 +28,10 @@ mod args; const LZMA_MAGIC: &[u8;4] = b"LZMA"; static ARGS: Lazy = Lazy::new(|| { Args::parse() }); +const VERSION: &str = env!("CARGO_PKG_VERSION"); fn main() { - println!("VTFX Reader [github.com/rob5300/vtfx_reader]"); + println!("VTFX Reader {VERSION} [github.com/rob5300/vtfx_reader]"); if !ARGS.input.exists() { println!("Error: No input file given. Run with --help to see arguments.");