feat: chuniio

This commit is contained in:
2025-04-15 13:12:12 +00:00
parent ac18c34895
commit b82fcc942f
20 changed files with 150 additions and 61 deletions

View File

@ -13,6 +13,14 @@ pub enum Aime {
Other(PkgKey),
}
#[derive(Deserialize, Serialize, Clone, Default, PartialEq, Debug)]
#[serde(rename_all = "snake_case")]
pub enum IOSelection {
Hardware,
#[default] SegatoolsBuiltIn,
Custom(PkgKey)
}
#[derive(Deserialize, Serialize, Clone, Debug)]
#[serde(default)]
pub struct AMNet {
@ -32,7 +40,9 @@ impl Default for AMNet {
pub struct Segatools {
pub target: PathBuf,
pub hook: Option<PkgKey>,
#[serde(skip_serializing_if = "Option::is_none")]
pub io: Option<PkgKey>,
pub io2: IOSelection,
pub aime: Aime,
pub amfs: PathBuf,
pub option: PathBuf,
@ -51,6 +61,7 @@ impl Segatools {
Game::Chunithm => Some(PkgKey("segatools-chusanhook".to_owned()))
},
io: None,
io2: IOSelection::SegatoolsBuiltIn,
amfs: PathBuf::default(),
option: PathBuf::default(),
appdata: PathBuf::from("appdata"),