shithub: pokered

Download patch

ref: 1dcaede8b5e41dbec9bf3f2b18c77d1b7d2de708
parent: 0fd9ba5670e4f5075b2ef9697df7b5226148dce9
author: vulcandth <vulcandth@gmail.com>
date: Tue Apr 26 11:10:46 EDT 2022

Remove Stadium data patch from tools/make_patch.c (#355)


--- a/tools/make_patch.c
+++ b/tools/make_patch.c
@@ -340,10 +340,6 @@
 
 	// The ROM checksum will always differ
 	buffer_append(patches, &(struct Patch){0x14e, 2});
-	// The Stadium data (see stadium.c) will always differ
-	unsigned int rom_size = (unsigned int)xfsize("", orig_rom);
-	unsigned int stadium_size = 24 + 6 + 2 + (rom_size / 0x2000) * 2;
-	buffer_append(patches, &(struct Patch){rom_size - stadium_size, stadium_size});
 
 	// Fill in the template
 	const struct Symbol *current_hook = NULL;