mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-08 13:58:50 +08:00
Add detect support for pfs
This commit is contained in:
@@ -400,3 +400,8 @@ impl Script for AstScript {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_this_format(_filename: &str, buf: &[u8], buf_len: usize) -> bool {
|
||||
let parser = parser::Parser::new(&buf[..buf_len], Encoding::Utf8);
|
||||
parser.try_parse_header().is_ok()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user