PatchSet only serializes patches to the file.

This commit is contained in:
Lyle Mantooth 2022-06-04 14:35:44 -04:00
parent 4cbc70eeca
commit 975d6fd420
Signed by: IslandUsurper
GPG key ID: 6DB52EAE123A5789
2 changed files with 17 additions and 3 deletions

View file

@ -49,8 +49,7 @@ fn main() -> Result<(), anyhow::Error> {
patches.add_patches(rom_patches);
println!("Writing output file {}", output_path);
let out_file = File::create(&output_path)?;
serde_json::to_writer(out_file, &patches)?;
patches.save_to_file(Path::new(&output_path))?;
Ok(())
}