;Kiryb
[RomOption]
;BackupType 0 Auto 1 SRAM 2 Flash 3 EEPROM
BackupType = 3
;BackupSize  2048 16K 4K 512
BackupSize = 512
PDFURL = "http://m1.nintendo.net/docvc/NUS/JPN/NK4J/NK4J_J.pdf"
UseTimer = 1
CmpBlockAdvFlag = 0
RetraceByVsync = 0

[Cmp]
W32OverlayCheck = 0

[RSPG]
GTaskDelay = 1024

[SI]
SIDelay = 0xD800

[InsertIdleInst]
Count = 3
Type0 = 1
Address0 = 0x800F5154
Inst0 = 0x3C0C800C
Value0 = 1
Type1 = 1
Address1 = 0x800A21A8
Inst1 = 0x3C01800D
Value1 = 1
Type2 = 1
Address2 = 0x800A5B70
Inst2 = 0x1440FFFD
Value2 = 1

[RomHack]
Count=2
;BTS No.68 patch
Address0 = 0xd68410
Type0 = 4
Value0 = a64:
11 9B 00 00 01 Ff 00 00 17 E0 0D 46 00 7F 00 00
FE 07 00 00 11 9B 00 00 0A 99 17 E0 00 7F 00 00
03 A5 00 00 03 A5 00 00 0E 68 0E 68 00 7F 00 00
04 C4 00 00 01 Ff 00 00 0F 2A 0D 46 00 7F 00 00

;BTS No.68 patch
Address1 = 0xd6a810
Type1 = 4
Value1 = a32:
11 9B 00 00 01 Ff 00 00 5F DF 01 E0 FF FF FF FF
04 C4 00 00 01 Ff 00 00 00 00 01 DF FF FF FF FF

[FilterHack]
Count = 7

;Fix NOA BTS No.236_a
TextureAddress0 = 0xffffffff
SumPixel0 = 0x19F68A90
Data2_0 = 0x4001246
Data3_0 = 0x40000
AlphaTest0 = 250

;Fix NOA BTS No.236_b
TextureAddress1 = 0x235B00
SumPixel1 = 0x2902C853
Data2_1 = 0x4001B46
Data3_1 = 0x30000
AlphaTest1 = 250

;Fix BTS No.1087
TextureAddress2 = 0x35DDD0
SumPixel2 = 0xABCEFDB8
Data2_2 = 0x4001A46
Data3_2 = 0x40000
AlphaTest2 = 250

;Fix BTS No.1059
TextureAddress3 = 0xffffffff
SumPixel3 = 0xAAD60E9
Data2_3 = 0x4001266
Data3_3 = 0x40000
AlphaTest3 = 250

;Fix BTS No.737-a
TextureAddress4 = 0x3678C0
SumPixel4 = 0xA4525D60
Data2_4 = 0x4001264
Data3_4 = 0x10000
AlphaTest4 = 250

;Fix BTS No.737-b
TextureAddress5 = 0x367A50
SumPixel5 = 0x78B3C7C0
Data2_5 = 0x4001264
Data3_5 = 0x10000
AlphaTest5 = 250

;Fix BTS No.791
TextureAddress6 = 0x38EBD0
SumPixel6 = 0xC8CCA156
Data2_6 = 0x4001266
Data3_6 = 0x30000
AlphaTest6 = 250

[VertexHack]
Count = 1

;Fix NOA BTS No.205
VertexCount0 = 32
VertexAddress0 = 0x23fbe0
TextureAddress0 = 0x245c00
FirstVertex0 = a6:ff e2 ff d4 ff fc
Value0 = a10:00 01 
00 1d 00 00 00 00 ff f0 
