shithub: pokecrystal

Download patch

ref: a71b7a92b7443ef60df96890e56917d67db9b80b
parent: 3927bcdb9d0429b5ff303cb787e522878bd01749
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Tue May 29 15:14:04 EDT 2018

Same pic bank solution as pokecrystal

--- a/engine/gfx/load_pics.asm
+++ b/engine/gfx/load_pics.asm
@@ -252,7 +252,7 @@
 
 	push hl
 	push bc
-	sub BANK(Pics_1) - PICS_FIX
+	sub BANK("Pics 1") - PICS_FIX
 	ld c, a
 	ld b, 0
 	ld hl, .PicsBanks
@@ -263,30 +263,30 @@
 	ret
 
 .PicsBanks: ; 511d4
-	db BANK(Pics_1) + 0
-	db BANK(Pics_1) + 1
-	db BANK(Pics_1) + 2
-	db BANK(Pics_1) + 3
-	db BANK(Pics_1) + 4
-	db BANK(Pics_1) + 5
-	db BANK(Pics_1) + 6
-	db BANK(Pics_1) + 7
-	db BANK(Pics_1) + 8
-	db BANK(Pics_1) + 9
-	db BANK(Pics_1) + 10
-	db BANK(Pics_1) + 11
-	db BANK(Pics_1) + 12
-	db BANK(Pics_1) + 13
-	db BANK(Pics_1) + 14
-	db BANK(Pics_1) + 15
-	db BANK(Pics_1) + 16
-	db BANK(Pics_1) + 17
-	db BANK(Pics_1) + 18
-	db BANK(Pics_1) + 19
-	db BANK(Pics_1) + 20
-	db BANK(Pics_1) + 21
-	db BANK(Pics_1) + 22
-	db BANK(Pics_1) + 23
+	db BANK("Pics 1") + 0
+	db BANK("Pics 1") + 1
+	db BANK("Pics 1") + 2
+	db BANK("Pics 1") + 3
+	db BANK("Pics 1") + 4
+	db BANK("Pics 1") + 5
+	db BANK("Pics 1") + 6
+	db BANK("Pics 1") + 7
+	db BANK("Pics 1") + 8
+	db BANK("Pics 1") + 9
+	db BANK("Pics 1") + 10
+	db BANK("Pics 1") + 11
+	db BANK("Pics 1") + 12
+	db BANK("Pics 1") + 13
+	db BANK("Pics 1") + 14
+	db BANK("Pics 1") + 15
+	db BANK("Pics 1") + 16
+	db BANK("Pics 1") + 17
+	db BANK("Pics 1") + 18
+	db BANK("Pics 1") + 19
+	db BANK("Pics 1") + 20
+	db BANK("Pics 1") + 21
+	db BANK("Pics 1") + 22
+	db BANK("Pics 1") + 23
 
 Function511ec: ; 511ec
 	ld a, c
--- a/gfx/pics.asm
+++ b/gfx/pics.asm
@@ -20,7 +20,6 @@
 
 
 SECTION "Pics 1", ROMX
-Pics_1::
 
 HoOhFrontpic:        INCBIN "gfx/pokemon/ho_oh/front.animated.2bpp.lz"
 MachampFrontpic:     INCBIN "gfx/pokemon/machamp/front.animated.2bpp.lz"