mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-26 21:57:08 +08:00
Add support to import comu message to scn scripts
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user