From 13a5895b81365bf02a99aaa64bb32dfe0373af46 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Mon, 29 Apr 2024 15:47:05 -0700 Subject: [PATCH] fix: fix Makefile to not zero out the ROM header --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d44aac05..83b4e20b 100755 --- a/Makefile +++ b/Makefile @@ -251,10 +251,11 @@ $(LD_SCRIPT): ld_script.txt $(BUILD_DIR)/sym_ewram.ld $(BUILD_DIR)/sym_ewram2.ld $(ELF): $(LD_SCRIPT) $(ALL_OBJECTS) $(LIBC) libagbsyscall tools cd $(BUILD_DIR) && $(LD) -T ld_script.ld -Map ../../$(MAP) -o ../../$@ $(LIB) + $(GBAFIX) $@ -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(REVISION) --silent $(ROM): %.gba: $(ELF) $(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0xA000000 $< $@ - $(GBAFIX) $@ -p -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(REVISION) --silent + $(GBAFIX) $@ -p --silent ifeq (,$(filter clean,$(MAKECMDGOALS))) -include $(ALL_OBJECTS:.o=.d)