Fix build system issue that requires building twice after a patch change

This commit is contained in:
Mr-Wiseguy
2025-11-21 23:50:06 -05:00
parent cdd25e5bf7
commit facb4d3047
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -1,12 +1,16 @@
#include "ovl_patches.hpp"
#include "../../RecompiledPatches/patches_bin.h"
#include "../../RecompiledPatches/recomp_overlays.inl"
#include "librecomp/overlays.hpp"
#include "librecomp/game.hpp"
extern "C" {
extern const char bk_patches_bin[];
extern const size_t bk_patches_bin_size;
}
void banjo::register_bk_patches() {
recomp::overlays::register_patches(bk_patches_bin, sizeof(bk_patches_bin), section_table, ARRLEN(section_table));
recomp::overlays::register_patches(bk_patches_bin, bk_patches_bin_size, section_table, ARRLEN(section_table));
recomp::overlays::register_base_exports(export_table);
recomp::overlays::register_base_events(event_names);
recomp::overlays::register_manual_patch_symbols(manual_patch_symbols);