@@ -5,7 +5,8 @@ use poe_tools::{
55 bundle_fs:: { from_cdn, from_steam} ,
66 bundle_loader:: cdn_base_url,
77 commands:: {
8- cat:: cat_file, dump_tables:: dump_tables, extract:: extract_files, list:: list_files, Patch ,
8+ cat:: cat_file, dump_art:: extract_art, dump_tables:: dump_tables, extract:: extract_files,
9+ list:: list_files, Patch ,
910 } ,
1011} ;
1112use std:: path:: PathBuf ;
@@ -42,6 +43,13 @@ enum Command {
4243 /// Path to write out the parsed tables to - Only supports CSV for now
4344 output_folder : PathBuf ,
4445 } ,
46+ DumpArt {
47+ /// Path to the folder to output the extracted files
48+ output_folder : PathBuf ,
49+ /// Glob pattern to filter the list of files
50+ #[ clap( default_value = "*" ) ]
51+ glob : Pattern ,
52+ } ,
4553}
4654
4755/// A simple CLI tool that extracts the virtual filenames from PoE data files.
@@ -143,6 +151,10 @@ fn main() -> Result<()> {
143151 output_folder,
144152 } => dump_tables ( & datc64_root, & schema_path, & output_folder, & args. patch )
145153 . context ( "Dump Tables command failed" ) ?,
154+ Command :: DumpArt {
155+ output_folder,
156+ glob,
157+ } => extract_art ( & mut fs, & glob, & output_folder) . context ( "Dump Art command failed" ) ?,
146158 }
147159
148160 Ok ( ( ) )
0 commit comments