Skip to content

Commit

Permalink
Update version to 1.2, update readme. Add version in first name print.
Browse files Browse the repository at this point in the history
  • Loading branch information
rob5300 committed Mar 10, 2024
1 parent aca2652 commit 675d13f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 13 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ mod args;

const LZMA_MAGIC: &[u8;4] = b"LZMA";
static ARGS: Lazy<Args> = 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.");
Expand Down

0 comments on commit 675d13f

Please sign in to comment.