Add support to import comu message to scn scripts

This commit is contained in:
2025-07-01 16:54:16 +08:00
parent 30feefffbd
commit 263c156d03
6 changed files with 152 additions and 3 deletions

View File

@@ -1 +1,9 @@
pub mod scn;
use std::collections::HashMap;
use std::sync::Arc;
pub fn read_kirikiri_comu_json(path: &str) -> anyhow::Result<Arc<HashMap<String, String>>> {
let mut reader = std::fs::File::open(path)?;
let data = serde_json::from_reader(&mut reader)?;
Ok(Arc::new(data))
}