Finally done serializing.
This commit is contained in:
		
							parent
							
								
									ec37b1d583
								
							
						
					
					
						commit
						8d8faf105a
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -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>,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue