;Ocarina
[Cheat]
;Health
Cheat0 = 1
Cheat0_Addr = 0x8011ACAE
Cheat0_Value = 0x01400140
Cheat0_Bytes = 4
;Keys
Cheat1 = 1
Cheat1_Addr = 0x8011ADA9
Cheat1_Value = 0x0009
Cheat1_Bytes = 2
;All Equipment
Cheat2 = 1
Cheat2_Addr = 0x8011AD1C
Cheat2_Value = 0x7777
Cheat2_Bytes = 2
;All Quest Items
Cheat3 = 1
Cheat3_Addr = 0x8011AD24
Cheat3_Value = 0x30FF
Cheat3_Bytes = 2
;All Status Items
Cheat4 = 1
Cheat4_Addr = 0x8011AD26
Cheat4_Value = 0xFFFF
Cheat4_Bytes = 2
;Pause Speed
Cheat5 = 2
Cheat5_Addr = 0x801DAE8B
Cheat5_Value = 0x02
Cheat5_Bytes = 1
;xiaojingling halo
;Cheat5 = 1
;Cheat5_Addr = 0x801e2a3f
;Cheat5_Value = 0x01
;Cheat5_Bytes = 1


[RomOption]
RetraceByVsync = 0
;CmpBlockAdvFlag = 0
Rumble = 1
;PlayerNum = 1
PDFURL = "http://m1.nintendo.net/docvc/NUS/JPN/CZLJ/CZLJ_J.pdf"
UseTimer = 1
RSPMultiCore = 0

[RomHack]
Count=2
Address0 = 0x175c39b
Type0 = 1
Value0 = 0x3e
Address1 = 0x9443d8
Type1 = 1
Value1 = 0xAE

[Render]
CopyDepthBuffer = 1
NeedTileSizeCheck = 1
ZClip = 0

[FilterHack]
Count = 4

;Fix BTS No.244
TextureAddress0 = 0x37A630
SumPixel0 = 0xBD076095
Data2_0 = 0x801247
Data3_0 = 0x200000
AlphaTest0 = 250

TextureAddress1 = 0x374830
SumPixel1 = 0x294329A9
Data2_1 = 0x801135
Data3_1 = 0x80000
AlphaTest1 = 250

TextureAddress2 = 0x376530
SumPixel2 = 0x18DDD160
Data2_2 = 0x800055
Data3_2 = 0x80000
AlphaTest2 = 250

;Fix BTS No.756
TextureAddress3 = 0x33D280
SumPixel3 = 0x67B4C150
Data2_3 = 0x800055
Data3_3 = 0x80000
AlphaTest3 = 200

[VertexHack]
Count = 10

;Fix BTS No.67 - 1
VertexCount0 = 26
VertexAddress0 = 0x248a30
TextureAddress0 = 0x384350
FirstVertex0 = a6: ff 14 00 00 fd f2
Value0 = a26:00 03 
00 15 ff 8e 00 00 00 2a
00 16 00 0f 00 00 00 2a
00 17 00 4c 00 00 00 2a

;Fix BTS No.67 - 2
VertexCount1 = 32
VertexAddress1 = 0x246080
TextureAddress1 = 0x384350
FirstVertex1 = a6: ff 42 fe ac f5 21
Value1 = a26:00 03 
00 00 ff 43 fe ac f5 21
00 01 ff 43 fe ac f4 b3
00 08 ff 43 fe ac f4 44

;Fix BTS No.67 - 3
VertexCount2 = 32
VertexAddress2 = 0x245e20
TextureAddress2 = 0x384350
FirstVertex2 = a6: 00 50 ff 24 f5 21
Value2 = a18:00 02 
00 02 00 bf ff 24 f5 21
00 09 00 bf fe aa f5 21

;Fix BTS No.67 - 4
VertexCount3 = 32
VertexAddress3 = 0x248640
TextureAddress3 = 0x384350
FirstVertex3 = a6: 01 09 00 00 fc ba
Value3 = a26:00 03 
00 1c 00 87 00 00 00 2a
00 1d 01 0a 00 00 00 2a
00 1e 00 49 00 00 00 2a

;Fix BTS No.239 - a
VertexCount4 = 32
VertexAddress4 = 0x241b20
TextureAddress4 = 0x380030
FirstVertex4 = a6: 04 4e 04 54 0c 1b
Value4 = a34:00 04
00 00 04 4e 04 54 0c 20
00 03 04 4e 04 54 0c 20
00 04 04 4e 04 54 0a 9c
00 09 04 4e 04 54 0a 9c

;Fix BTS No.239 - b
VertexCount5 = 13
VertexAddress5 = 0x243fe8
TextureAddress5 = 0x37c830
FirstVertex5 = a6: fd dd 05 b2 0c 84
Value5 = a10:00 01 
00 07 fe 6d 05 aa 05 72

;Fix same problem as NOA BTS No.58
VertexCount6 = 10
VertexAddress6 = 0x22fdd8
TextureAddress6 = 0x37af28
FirstVertex6 = a6:  0b 96 fe fc 27 cd
Value6 = a18:00 02 
00 06 15 95 00 58 22 03
00 07 15 95 00 58 22 03

;Fix BTS No.884
VertexCount7 = 6
VertexAddress7 = 0x244d88
TextureAddress7 = 0x256328
FirstVertex7 = a6:  00 3c 06 cf fd a9
Value7 = a26:00 03 
00 00 00 3c 06 c0 fd a9
00 03 ff fc 06 c0 fd a9
00 04 00 7c 06 c0 fd a9

;Fix BTS No.535
VertexCount8 = 32
VertexAddress8 = 0x245808
TextureAddress8 = 0x383830
FirstVertex8 = a6:  04 4e 04 54 0a ef
Value8 = a10:00 01 
00 07 05 16 04 54 0a a0

;Fix BTS No.674
VertexCount9 = 29
VertexAddress9 = 0x31f810
TextureAddress9 = 0x31f010
FirstVertex9 = a6:00 3b 00 81 00 24
Value9 = a10:00 01 
00 1b ff 56 fe e0 ff c3
