This commit is contained in:
2025-08-14 13:50:56 +08:00
parent 1a252c05c2
commit 92b063e8bf
4 changed files with 5 additions and 5 deletions

4
Cargo.lock generated
View File

@@ -164,7 +164,7 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
[[package]]
name = "libtlg-rs"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"lazy_static",
"overf",
@@ -253,7 +253,7 @@ dependencies = [
[[package]]
name = "tlg"
version = "0.1.3"
version = "0.1.4"
dependencies = [
"clap",
"libtlg-rs",

View File

@@ -1,6 +1,6 @@
[package]
name = "libtlg-rs"
version = "0.1.3"
version = "0.1.4"
description = "Rust version of libtlg"
edition = "2024"
license = "MIT"

View File

@@ -17,7 +17,7 @@ pub fn is_valid_tlg(data: &[u8]) -> bool {
if data.len() < 11 {
return false;
}
data == b"TLG0.0\x00sds\x1a" || data == b"TLG5.0\x00raw\x1a" || data == b"TLG6.0\x00raw\x1a"
data.starts_with(b"TLG0.0\x00sds\x1a") || data.starts_with(b"TLG5.0\x00raw\x1a") || data.starts_with(b"TLG6.0\x00raw\x1a")
}
/// Check if it's a valid TLG.

View File

@@ -1,6 +1,6 @@
[package]
name = "tlg"
version = "0.1.3"
version = "0.1.4"
description = "Tools to process TLG image file."
edition = "2024"
license = "MIT"