Add export support for Qlie tiled PNG image (.png)

This commit is contained in:
2026-01-29 23:35:38 +08:00
parent 430ffb26f6
commit 736fe4d6a8
9 changed files with 270 additions and 4 deletions

View File

@@ -284,10 +284,15 @@ impl<T: Read + Seek + std::fmt::Debug + 'static> Script for QliePackArchive<T> {
fn detect_script_type(_name: &str, buf: &[u8], buf_len: usize) -> Option<ScriptType> {
if super::super::script::is_this_format(buf, buf_len) {
Some(ScriptType::Qlie)
} else {
None
return Some(ScriptType::Qlie);
}
#[cfg(feature = "qlie-img")]
{
if buf_len >= 4 && buf.starts_with(b"DPNG") {
return Some(ScriptType::QlieDpng);
}
}
None
}
#[derive(Debug)]