Add support to export multiple images

This commit is contained in:
2025-06-29 19:25:55 +08:00
parent 389ba1f52a
commit ebcce0b741
5 changed files with 205 additions and 1 deletions

View File

@@ -107,7 +107,11 @@ impl ScriptBuilder for CSIntArcBuilder {
}
}
fn detect_script_type(_buf: &[u8], _buf_len: usize, _filename: &str) -> Option<&'static ScriptType> {
fn detect_script_type(
_buf: &[u8],
_buf_len: usize,
_filename: &str,
) -> Option<&'static ScriptType> {
#[cfg(feature = "cat-system-img")]
if _buf_len >= 4 && _buf.starts_with(b"HG-3") {
return Some(&ScriptType::CatSystemHg3);