# GCCE01 - FINAL FANTASY Crystal Chronicles

[OnFrame]
# Fix incorrect bounds check before an EFB to RAM copy that causes buffer overruns.
# With this patch enabled, it is safe to set EFBToTextureEnable = True.
$Fix buffer overrun bug (crash at Goblin Wall)
0x80017B16:word:0x00003430

# Fix a race condition that makes GBAs take longer to connect when entering a level.
$Fix GBA connections
0x800b1828:dword:0x4bf534d9
0x80004d00:dword:0x7ce802a6
0x80004d04:dword:0x428007f1
0x80004d08:dword:0x3c608000
0x80004d0c:dword:0x38834d28
0x80004d10:dword:0x807f10a0
0x80004d14:dword:0x38632504
0x80004d18:dword:0x38a00018
0x80004d1c:dword:0x428007d9
0x80004d20:dword:0x7ce803a6
0x80004d24:dword:0x4e800020
0x80004d28:dword:0x0480ff20
0x80004d2c:dword:0x18705c70
0x80004d30:dword:0x04490120
0x80004d34:dword:0x08700149
0x80004d38:dword:0x0c6009e0
0x80004d3c:dword:0x90010003

[OnFrame_Enabled]
$Fix GBA connections

[Patches_RetroAchievements_Verified]
$Fix buffer overrun bug (crash at Goblin Wall)
$Fix GBA connections

[ActionReplay]
# Add action replay cheats here.
$Infinite Health: Single Player
04EC59D4 08000000
0410B494 A0A3001A
0410B4A0 B0A3001C
0410B4AC 48000058
$Infinite Health: Multi-Player
04EC59D5 08000000
0410B494 A0A3001A
0410B4A0 B0A3001C
0410B4AC 48000058
041227D8 A003001A
041227E0 B003001C
$Max Hearts
04EC59D6 08000000
0409F3D4 38C00010
$Max Strength
04EC59D7 08000000
0409F3A0 38C003E7
$Super Max Strength
04EC59D8 08000000
0409F3A0 38C003E7
0409FA88 380003E7
$Max Defense
04EC59D9 08000000
0409F3C8 38C003E7
$Super Max Defense
04EC59DA 08000000
0409F3C8 38C003E7
0409FA9C 380003E7
$Max Magic
04EC59DB 08000000
0409F3BC 38C003E7
$Super Max Magic
04EC59DC 08000000
0409F3BC 38C003E7
0409FAB4 380003E7
$Able To Leave Chalice Aura
04EC59DD 08000000
0412122C 60000000
04121250 60000000
$Press L+X - Change Chalice to Fire
04EC59E0 08000000
0A243104 00000440
0221EF3E 00000001
$Press L+Y - Change Chalice to Water
04EC59E1 08000000
0A243104 00000840
0221EF3E 00000002
$Press R+X - Change Chalice to Wind
04EC59E2 08000000
0A243104 00000420
0221EF3E 00000004
$Press R+Y - Change Chalice to Earth
04EC59E3 08000000
0A243104 00000820
0221EF3E 00000008
$Press L+R - Change Chalice to Unknown
04EC59E4 08000000
0A243104 00000060
0221EF3E 00000010
$Single player Max/Infinite Gil
04EC59ED 08000000
0421F470 05F5E0FF
$Single player Love All Foods
04EC59EE 08000000
0221F628 00070064
$Single player Have All Artifacts
04EC59EF 08000000
00000000 8221F3A6
0000009F 01490001
$Single Player ITEM SLOT 4 CONTAINS Copper Sword
04EC59F1 08000000
0221F32C 00000001
$Single Player ITEM SLOT 4 CONTAINS Iron Sword
04EC59F2 08000000
0221F32C 00000002
$Single Player ITEM SLOT 4 CONTAINS Steel Blade
04EC59F3 08000000
0221F32C 00000003
$Single Player ITEM SLOT 4 CONTAINS Feather Saber
04EC59F4 08000000
0221F32C 00000004
$Single Player ITEM SLOT 4 CONTAINS Bastard Sword
04EC59F5 08000000
0221F32C 00000005
$Single Player ITEM SLOT 4 CONTAINS Defender
04EC59F6 08000000
0221F32C 00000006
$Single Player ITEM SLOT 4 CONTAINS Rune Blade
04EC59F7 08000000
0221F32C 00000007
$Single Player ITEM SLOT 4 CONTAINS Excalibur
04EC59F8 08000000
0221F32C 00000008
$Single Player ITEM SLOT 4 CONTAINS Ragnarok
04EC59F9 08000000
0221F32C 00000009
$Single Player ITEM SLOT 4 CONTAINS Treasured Sword
04EC59FA 08000000
0221F32C 0000000A
$Single Player ITEM SLOT 4 CONTAINS Father's Sword
04EC59FB 08000000
0221F32C 0000000B
$Single Player ITEM SLOT 4 CONTAINS Marr Sword
04EC59FC 08000000
0221F32C 0000000C
$Single Player ITEM SLOT 4 CONTAINS Ultima Sword
04EC59FD 08000000
0221F32C 0000000F
$Single Player ITEM SLOT 4 CONTAINS Iron Lance
04EC59FE 08000000
0221F32C 00000012
$Single Player ITEM SLOT 4 CONTAINS Partisan
04EC59FF 08000000
0221F32C 00000013
$Single Player ITEM SLOT 4 CONTAINS Sonic Lance
04EC5A00 08000000
0221F32C 00000014
$Single Player ITEM SLOT 4 CONTAINS Titan Lance
04EC5A01 08000000
0221F32C 00000015
$Single Player ITEM SLOT 4 CONTAINS Halberd
04EC5A02 08000000
0221F32C 00000016
$Single Player ITEM SLOT 4 CONTAINS Highwind
04EC5A03 08000000
0221F32C 00000017
$Single Player ITEM SLOT 4 CONTAINS Dragon Lance
04EC5A04 08000000
0221F32C 00000018
$Single Player ITEM SLOT 4 CONTAINS Dragoon Spear
04EC5A05 08000000
0221F32C 00000019
$Single Player ITEM SLOT 4 CONTAINS Gungnir
04EC5A06 08000000
0221F32C 0000001A
$Single Player ITEM SLOT 4 CONTAINS Longinus
04EC5A07 08000000
0221F32C 0000001B
$Single Player ITEM SLOT 4 CONTAINS Treasured Spear
04EC5A08 08000000
0221F32C 0000001C
$Single Player ITEM SLOT 4 CONTAINS Father's Spear
04EC5A09 08000000
0221F32C 0000001D
$Single Player ITEM SLOT 4 CONTAINS Marr Spear
04EC5A0A 08000000
0221F32C 0000001E
$Single Player ITEM SLOT 4 CONTAINS Ultima Lance
04EC5A0B 08000000
0221F32C 0000001F
$Single Player ITEM SLOT 4 CONTAINS Orc Hammer
04EC5A0C 08000000
0221F32C 00000024
$Single Player ITEM SLOT 4 CONTAINS Wave Hammer
04EC5A0D 08000000
0221F32C 00000025
$Single Player ITEM SLOT 4 CONTAINS Rune Hammer
04EC5A0E 08000000
0221F32C 00000026
$Single Player ITEM SLOT 4 CONTAINS Goblin Hammer
04EC5A0F 08000000
0221F32C 00000027
$Single Player ITEM SLOT 4 CONTAINS Sonic Hammer
04EC5A10 08000000
0221F32C 00000028
$Single Player ITEM SLOT 4 CONTAINS Prism Hammer
04EC5A11 08000000
0221F32C 00000029
$Single Player ITEM SLOT 4 CONTAINS Mythril Hammer
04EC5A12 08000000
0221F32C 0000002A
$Single Player ITEM SLOT 4 CONTAINS Mystic Hammer
04EC5A13 08000000
0221F32C 0000002B
$Single Player ITEM SLOT 4 CONTAINS Treasured Hammer
04EC5A14 08000000
0221F32C 0000002C
$Single Player ITEM SLOT 4 CONTAINS Father's Hammer
04EC5A15 08000000
0221F32C 0000002D
$Single Player ITEM SLOT 4 CONTAINS Marr Hammer
04EC5A16 08000000
0221F32C 0000002E
$Single Player ITEM SLOT 4 CONTAINS Ultima Hammer
04EC5A17 08000000
0221F32C 0000002F
$Single Player ITEM SLOT 4 CONTAINS Aura Racket
04EC5A18 08000000
0221F32C 00000034
$Single Player ITEM SLOT 4 CONTAINS Solid Racket
04EC5A19 08000000
0221F32C 00000035
$Single Player ITEM SLOT 4 CONTAINS Dual Shooter
04EC5A1A 08000000
0221F32C 00000036
$Single Player ITEM SLOT 4 CONTAINS Elemental Cudgel
04EC5A1B 08000000
0221F32C 00000037
$Single Player ITEM SLOT 4 CONTAINS Steel Cudgel
04EC5A1C 08000000
0221F32C 00000038
$Single Player ITEM SLOT 4 CONTAINS Prism Bludgeon
04EC5A1D 08000000
0221F32C 00000039
$Single Player ITEM SLOT 4 CONTAINS Butterfly Head
04EC5A1E 08000000
0221F32C 0000003A
$Single Player ITEM SLOT 4 CONTAINS Queen's Head
04EC5A1F 08000000
0221F32C 0000003B
$Single Player ITEM SLOT 4 CONTAINS Dreamcatcher
04EC5A20 08000000
0221F32C 0000003C
$Single Player ITEM SLOT 4 CONTAINS Treasured Maul
04EC5A21 08000000
0221F32C 0000003D
$Single Player ITEM SLOT 4 CONTAINS Father's Maul
04EC5A22 08000000
0221F32C 0000003E
$Single Player ITEM SLOT 4 CONTAINS Marr Maul
04EC5A23 08000000
0221F32C 0000003F
$Single Player ITEM SLOT 4 CONTAINS Ultima Maul
04EC5A24 08000000
0221F32C 00000040
$Single Player ITEM SLOT 4 CONTAINS Travel Clothes
04EC5A25 08000000
0221F32C 00000045
$Single Player ITEM SLOT 4 CONTAINS Bronze Plate
04EC5A26 08000000
0221F32C 00000046
$Single Player ITEM SLOT 4 CONTAINS Iron Plate
04EC5A27 08000000
0221F32C 00000047
$Single Player ITEM SLOT 4 CONTAINS Mythril Plate
04EC5A28 08000000
0221F32C 00000048
$Single Player ITEM SLOT 4 CONTAINS Flame Mail
04EC5A29 08000000
0221F32C 00000049
$Single Player ITEM SLOT 4 CONTAINS Frost Mail
04EC5A2A 08000000
0221F32C 0000004A
$Single Player ITEM SLOT 4 CONTAINS Storm Mail
04EC5A2B 08000000
0221F32C 0000004B
$Single Player ITEM SLOT 4 CONTAINS Time Mail
04EC5A2C 08000000
0221F32C 0000004C
$Single Player ITEM SLOT 4 CONTAINS Eternal Mail
04EC5A2D 08000000
0221F32C 0000004D
$Single Player ITEM SLOT 4 CONTAINS Blessed Mail
04EC5A2E 08000000
0221F32C 0000004E
$Single Player ITEM SLOT 4 CONTAINS Saintly Mail
04EC5A2F 08000000
0221F32C 0000004F
$Single Player ITEM SLOT 4 CONTAINS Gold Mail
04EC5A30 08000000
0221F32C 00000050
$Single Player ITEM SLOT 4 CONTAINS Crystal Mail
04EC5A31 08000000
0221F32C 00000051
$Single Player ITEM SLOT 4 CONTAINS Diamond Plate
04EC5A32 08000000
0221F32C 00000052
$Single Player ITEM SLOT 4 CONTAINS Gaia Plate
04EC5A33 08000000
0221F32C 00000053
$Single Player ITEM SLOT 4 CONTAINS Mystic Armor
04EC5A34 08000000
0221F32C 00000054
$Single Player ITEM SLOT 4 CONTAINS Taterskin Coat
04EC5A35 08000000
0221F32C 00000055
$Single Player ITEM SLOT 4 CONTAINS Coat
04EC5A36 08000000
0221F32C 00000056
