shithub: pokecrystal

Download patch

ref: c0b6e5bc21ca893f6495d49af76db4ba4461a4a7
parent: 44128c5d989cf56e0305bedc37044c093bc02668
author: mid-kid <esteve.varela@gmail.com>
date: Sun Feb 23 09:33:53 EST 2020

JoypadInt -> Joypad

This matches all other interrupts. The old Joypad was renamed to
UpdateJoypad.

--- a/home/header.asm
+++ b/home/header.asm
@@ -50,7 +50,7 @@
 	jp Serial
 
 SECTION "joypad", ROM0
-	jp JoypadInt
+	jp Joypad
 
 
 ; Game Boy cartridge header
--- a/home/joypad.asm
+++ b/home/joypad.asm
@@ -1,4 +1,4 @@
-JoypadInt::
+Joypad::
 ; Replaced by Joypad, called from VBlank instead of the useless
 ; joypad interrupt.
 
@@ -13,7 +13,7 @@
 	ldh [hJoyDown], a
 	ret
 
-Joypad::
+UpdateJoypad::
 ; This is called automatically every frame in VBlank.
 ; Read the joypad register and translate it to something more
 ; workable for use in-game. There are 8 buttons, so we can use
--- a/home/vblank.asm
+++ b/home/vblank.asm
@@ -131,7 +131,7 @@
 	ld [wTextDelayFrames], a
 .ok2
 
-	call Joypad
+	call UpdateJoypad
 
 	ld a, BANK(_UpdateSound)
 	rst Bankswitch
@@ -325,7 +325,7 @@
 
 	call hTransferVirtualOAM
 
-	call Joypad
+	call UpdateJoypad
 
 	xor a
 	ld [wVBlankOccurred], a
@@ -364,7 +364,7 @@
 	xor a
 	ld [wVBlankOccurred], a
 
-	call Joypad
+	call UpdateJoypad
 
 	xor a
 	ldh [rIF], a