mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-07-08 01:31:53 +08:00
Add CabbageCxCrypt
This commit is contained in:
@@ -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,
|
||||
)?),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user