Add serde support for Yu-Ris YSTB(compiled script) file (.ybn)

This commit is contained in:
2026-05-30 12:36:01 +08:00
parent f1e9c15355
commit eaa4ba6eec
8 changed files with 241 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Copy, Clone, Serialize, Deserialize, Debug)]
#[serde(untagged, rename_all = "camelCase")]
#[serde(rename_all = "camelCase")]
/// Text Encoding
pub enum Encoding {
/// Automatically detect encoding
@@ -666,6 +666,9 @@ pub struct ExtraConfig {
#[cfg(feature = "yuris")]
/// Path to the ysc.ybn file
pub yuris_ysc_path: Option<String>,
#[cfg(feature = "yuris")]
/// Disasm Yu-RIS YSTB (.ybn) file
pub yuris_ystb_disasm: bool,
}
#[cfg(feature = "artemis")]