shithub: pokecrystal

Download patch

ref: a6c720078278fe9e043eb3b0ddfdcaebc9db394d
parent: 5bbcedb886eba1f3187b57c2759e4c4e20ee6975
author: yenatch <[email protected]>
date: Mon Sep 9 08:56:13 EDT 2013

CheckCGB

--- a/main.asm
+++ b/main.asm
@@ -12065,7 +12065,7 @@
 
 Function864c: ; 864c
 ; LoadSGBLayout
-	call Function8d55
+	call CheckCGB
 	jp nz, Function8d59
 	ld a, b
 	cp $ff
@@ -12236,7 +12236,7 @@
 ; 8b07
 
 Function8b07: ; 8b07
-	call Function8d55
+	call CheckCGB
 	ret z
 	ld hl, $4b2f
 	ld de, $d000
@@ -12317,7 +12317,7 @@
 	add hl, hl
 	ld de, $4d05
 	add hl, de
-	call Function8d55
+	call CheckCGB
 	jr nz, .asm_8cf0
 	push hl
 	ld hl, $5ce6
@@ -12355,7 +12355,7 @@
 INCBIN "baserom.gbc", $8d05, $8d55 - $8d05
 
 
-Function8d55: ; 8d55
+CheckCGB: ; 8d55
 	ld a, [hCGB]
 	and a
 	ret
@@ -12939,7 +12939,7 @@
 ; 9853
 
 Function9853: ; 9853
-	call Function8d55
+	call CheckCGB
 	ret nz
 	di
 	ld a, [$cfbe]
@@ -12972,7 +12972,7 @@
 
 
 Function9890: ; 9890
-	call Function8d55
+	call CheckCGB
 	ret z
 	ld a, $1
 	ld [rVBK], a