Finally done serializing.

This commit is contained in:
Lyle Mantooth 2022-06-04 15:28:21 -04:00
parent ec37b1d583
commit 8d8faf105a
Signed by: IslandUsurper
GPG key ID: 6DB52EAE123A5789

View file

@ -19,11 +19,13 @@ pub mod rom;
pub struct InvalidEnumError<T>(PhantomData<T>); pub struct InvalidEnumError<T>(PhantomData<T>);
#[derive(Deserialize, Serialize)] #[derive(Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct Patch { pub struct Patch {
pub address: usize, pub address: usize,
pub patch_data: Vec<u8>, pub patch_data: Vec<u8>,
} }
#[derive(Default)]
pub struct PatchSet { pub struct PatchSet {
filename: PathBuf, filename: PathBuf,
patches: Vec<Patch>, patches: Vec<Patch>,