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

This commit is contained in:
vulcandth 2022-04-26 15:10:46 -05:00 committed by GitHub
parent 0fd9ba5670
commit 1dcaede8b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -340,10 +340,6 @@ struct Buffer *process_template(const char *template_filename, const char *patch
// The ROM checksum will always differ // The ROM checksum will always differ
buffer_append(patches, &(struct Patch){0x14e, 2}); 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 // Fill in the template
const struct Symbol *current_hook = NULL; const struct Symbol *current_hook = NULL;