mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-07-08 01:31:53 +08:00
Add .cst detect support for CatSystemInt
This commit is contained in:
@@ -107,15 +107,14 @@ impl ScriptBuilder for CSIntArcBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn detect_script_type(
|
fn detect_script_type(buf: &[u8], buf_len: usize, _filename: &str) -> Option<&'static ScriptType> {
|
||||||
_buf: &[u8],
|
|
||||||
_buf_len: usize,
|
|
||||||
_filename: &str,
|
|
||||||
) -> Option<&'static ScriptType> {
|
|
||||||
#[cfg(feature = "cat-system-img")]
|
#[cfg(feature = "cat-system-img")]
|
||||||
if _buf_len >= 4 && _buf.starts_with(b"HG-3") {
|
if buf_len >= 4 && buf.starts_with(b"HG-3") {
|
||||||
return Some(&ScriptType::CatSystemHg3);
|
return Some(&ScriptType::CatSystemHg3);
|
||||||
}
|
}
|
||||||
|
if buf_len >= 8 && buf.starts_with(b"CatScene") {
|
||||||
|
return Some(&ScriptType::CatSystem);
|
||||||
|
}
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user