This branch predates CI on `main`. `cargo fmt --all` only; no behaviour. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
18 lines
517 B
Rust
18 lines
517 B
Rust
use sylpheed_formats::{pak, ui_layout};
|
|
fn main() {
|
|
let ar = pak::PakArchive::open(std::env::args().nth(1).unwrap()).unwrap();
|
|
let b = ui_layout::parse_build(&ar.read(&ar.entries()[4]).unwrap()).unwrap();
|
|
for el in b
|
|
.elements
|
|
.iter()
|
|
.filter(|e| e.name.contains("ptloop") || e.name.contains("ptbtn"))
|
|
{
|
|
println!(
|
|
"{:<18} sprite={:?} has_leaf={}",
|
|
el.name,
|
|
el.sprite,
|
|
b.records.contains_key(&el.name)
|
|
);
|
|
}
|
|
}
|