From 91c75141a89098cede3031416df4201b5c04c896 Mon Sep 17 00:00:00 2001 From: Mahyar Koshkouei Date: Tue, 7 Feb 2023 12:40:55 +0000 Subject: [PATCH] Fix MGB bootrom padding larger than 256 bytes mgb_boot.bin was incorrectly being padded to a CGB-size bootrom. Signed-off-by: Mahyar Koshkouei --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ebbfebb..f43e1a5 100644 --- a/Makefile +++ b/Makefile @@ -542,7 +542,7 @@ $(BIN)/BootROMs/%.bin: BootROMs/%.asm $(OBJ)/BootROMs/SameBoyLogo.pb12 -@$(MKDIR) -p $(dir $@) rgbasm -i $(OBJ)/BootROMs/ -i BootROMs/ -o $@.tmp $< rgblink -o $@.tmp2 $@.tmp - dd if=$@.tmp2 of=$@ count=1 bs=$(if $(findstring dmg,$@)$(findstring sgb,$@),256,2304) 2> $(NULL) + dd if=$@.tmp2 of=$@ count=1 bs=$(if $(findstring dmg,$@)$(findstring sgb,$@)$(findstring mgb,$@),256,2304) 2> $(NULL) @rm $@.tmp $@.tmp2 # Libretro Core (uses its own build system)