pub fn extract_strings_from_file( file_path: PathBuf, ) -> Result<Vec<ExtractedString>, Box<dyn Error>>
快速提取文件中的字符串
file_path
返回提取到的字符串列表
use esp_extractor::extract_strings_from_file; use std::path::PathBuf; let strings = extract_strings_from_file(PathBuf::from("example.esp"))?; println!("提取到 {} 个字符串", strings.len());