Add CabbageCxCrypt

This commit is contained in:
2026-04-08 16:19:05 +08:00
parent a8ed40db2c
commit b5aa53690c
5 changed files with 173 additions and 1 deletions

View File

@@ -130,6 +130,13 @@ enum CryptType {
cx: CxSchema,
names_section_id: String,
},
#[serde(rename_all = "PascalCase")]
CabbageCxCrypt {
#[serde(flatten)]
cx: CxSchema,
names_section_id: String,
random_seed: u32,
},
}
#[derive(Clone, Debug, Deserialize)]
@@ -174,6 +181,17 @@ impl Schema {
filename,
names_section_id.clone(),
)?),
CryptType::CabbageCxCrypt {
cx,
names_section_id,
random_seed,
} => Box::new(cx::CabbageCxCrypt::new(
self.base.clone(),
cx,
filename,
names_section_id.clone(),
*random_seed,
)?),
})
}
}