mirror of
https://github.com/zeldaret/tmc
synced 2026-05-29 08:43:06 -04:00
Merge pull request #701 from Henny022p/cleanup/250302
Various code cleanup changes
This commit is contained in:
@@ -621,23 +621,23 @@ _0800439C: .4byte gSpritePtrs
|
||||
_080043A0: .4byte gSpritePtrs
|
||||
_080043A4: .4byte gGFXSlots+4
|
||||
|
||||
thumb_func_start CreateDrownFX
|
||||
CreateDrownFX: @ 0x080043A8
|
||||
thumb_func_start CreateDrownFx
|
||||
CreateDrownFx: @ 0x080043A8
|
||||
movs r1, #0xb // FX_WATER_SPLASH
|
||||
b create_fx
|
||||
|
||||
thumb_func_start CreateLavaDrownFX
|
||||
CreateLavaDrownFX: @ 0x080043AC
|
||||
thumb_func_start CreateLavaDrownFx
|
||||
CreateLavaDrownFx: @ 0x080043AC
|
||||
movs r1, #0xc // FX_LAVA_SPLASH
|
||||
b create_fx
|
||||
|
||||
thumb_func_start CreateSwampDrownFX
|
||||
CreateSwampDrownFX: @ 0x080043AC
|
||||
thumb_func_start CreateSwampDrownFx
|
||||
CreateSwampDrownFx: @ 0x080043AC
|
||||
movs r1, #0x52 // FX_GREEN_SPLASH
|
||||
b create_fx
|
||||
|
||||
thumb_func_start CreatePitFallFX
|
||||
CreatePitFallFX: @ 0x080043B4
|
||||
thumb_func_start CreatePitFallFx
|
||||
CreatePitFallFx: @ 0x080043B4
|
||||
movs r1, #0 // FX_FALL_DOWN
|
||||
|
||||
create_fx:
|
||||
|
||||
@@ -62,10 +62,10 @@ sub_0800442E: @ 0x0800442E
|
||||
not_hazard:
|
||||
movs r0, #0
|
||||
pop {r1, pc}
|
||||
_0800444C: .4byte CreatePitFallFX
|
||||
_08004450: .4byte CreateDrownFX
|
||||
_08004454: .4byte CreateLavaDrownFX
|
||||
_08004458: .4byte CreateSwampDrownFX
|
||||
_0800444C: .4byte CreatePitFallFx
|
||||
_08004450: .4byte CreateDrownFx
|
||||
_08004454: .4byte CreateLavaDrownFx
|
||||
_08004458: .4byte CreateSwampDrownFx
|
||||
|
||||
thumb_func_start sub_0800445C
|
||||
sub_0800445C: @ 0x0800445C
|
||||
|
||||
+5
-5
@@ -71,7 +71,7 @@ _08001230:
|
||||
ldr r3, _0800135C @ =UpdateAnimationVariableFrames
|
||||
bx r3
|
||||
_0800123E:
|
||||
ldr r3, _08001360 @ =CreatePitFallFX
|
||||
ldr r3, _08001360 @ =CreatePitFallFx
|
||||
bx r3
|
||||
|
||||
non_word_aligned_thumb_func_start GenericConfused
|
||||
@@ -155,9 +155,9 @@ _080012BA:
|
||||
gUnk_080012C8::
|
||||
.4byte 0x00000000
|
||||
_080012CC: .4byte sub_08001214
|
||||
_080012D0: .4byte CreateDrownFX
|
||||
_080012D4: .4byte CreateLavaDrownFX
|
||||
_080012D8: .4byte CreateSwampDrownFX
|
||||
_080012D0: .4byte CreateDrownFx
|
||||
_080012D4: .4byte CreateLavaDrownFx
|
||||
_080012D8: .4byte CreateSwampDrownFx
|
||||
|
||||
thumb_func_start sub_080012DC
|
||||
sub_080012DC: @ 0x080012DC
|
||||
@@ -241,7 +241,7 @@ _08001352:
|
||||
.align 2, 0
|
||||
_08001358: .4byte gEnemyFunctions
|
||||
_0800135C: .4byte UpdateAnimationVariableFrames
|
||||
_08001360: .4byte CreatePitFallFX
|
||||
_08001360: .4byte CreatePitFallFx
|
||||
_08001364: .4byte 0x00001800
|
||||
_08001368: .4byte gUnk_080012C8
|
||||
_0800136C: .4byte gUnk_080012C8
|
||||
|
||||
+27
-27
@@ -13037,137 +13037,137 @@
|
||||
"size": 8
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764.bin",
|
||||
"path": "holeManager/gHoleTransitions.bin",
|
||||
"start": 1083236,
|
||||
"size": 32
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_1.bin",
|
||||
"path": "holeManager/gHoleTransitions_1.bin",
|
||||
"start": 1083272,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_2.bin",
|
||||
"path": "holeManager/gHoleTransitions_2.bin",
|
||||
"start": 1083292,
|
||||
"size": 20
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_3.bin",
|
||||
"path": "holeManager/gHoleTransitions_3.bin",
|
||||
"start": 1083316,
|
||||
"size": 12
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_4.bin",
|
||||
"path": "holeManager/gHoleTransitions_4.bin",
|
||||
"start": 1083332,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_5.bin",
|
||||
"path": "holeManager/gHoleTransitions_5.bin",
|
||||
"start": 1083352,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_6.bin",
|
||||
"path": "holeManager/gHoleTransitions_6.bin",
|
||||
"start": 1083372,
|
||||
"size": 40
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_7.bin",
|
||||
"path": "holeManager/gHoleTransitions_7.bin",
|
||||
"start": 1083416,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_8.bin",
|
||||
"path": "holeManager/gHoleTransitions_8.bin",
|
||||
"start": 1083436,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_9.bin",
|
||||
"path": "holeManager/gHoleTransitions_9.bin",
|
||||
"start": 1083456,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_10.bin",
|
||||
"path": "holeManager/gHoleTransitions_10.bin",
|
||||
"start": 1083476,
|
||||
"size": 32
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_11.bin",
|
||||
"path": "holeManager/gHoleTransitions_11.bin",
|
||||
"start": 1083512,
|
||||
"size": 440
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_12.bin",
|
||||
"path": "holeManager/gHoleTransitions_12.bin",
|
||||
"start": 1083956,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_13.bin",
|
||||
"path": "holeManager/gHoleTransitions_13.bin",
|
||||
"start": 1083976,
|
||||
"size": 36
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_14.bin",
|
||||
"path": "holeManager/gHoleTransitions_14.bin",
|
||||
"start": 1084016,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_15.bin",
|
||||
"path": "holeManager/gHoleTransitions_15.bin",
|
||||
"start": 1084036,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_16.bin",
|
||||
"path": "holeManager/gHoleTransitions_16.bin",
|
||||
"start": 1084056,
|
||||
"size": 36
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_17.bin",
|
||||
"path": "holeManager/gHoleTransitions_17.bin",
|
||||
"start": 1084096,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_18.bin",
|
||||
"path": "holeManager/gHoleTransitions_18.bin",
|
||||
"start": 1084116,
|
||||
"size": 36
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_19.bin",
|
||||
"path": "holeManager/gHoleTransitions_19.bin",
|
||||
"start": 1084156,
|
||||
"size": 36
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_20.bin",
|
||||
"path": "holeManager/gHoleTransitions_20.bin",
|
||||
"start": 1084196,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_21.bin",
|
||||
"path": "holeManager/gHoleTransitions_21.bin",
|
||||
"start": 1084216,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_22.bin",
|
||||
"path": "holeManager/gHoleTransitions_22.bin",
|
||||
"start": 1084236,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_23.bin",
|
||||
"path": "holeManager/gHoleTransitions_23.bin",
|
||||
"start": 1084256,
|
||||
"size": 32
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_24.bin",
|
||||
"path": "holeManager/gHoleTransitions_24.bin",
|
||||
"start": 1084292,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_25.bin",
|
||||
"path": "holeManager/gHoleTransitions_25.bin",
|
||||
"start": 1084312,
|
||||
"size": 16
|
||||
},
|
||||
{
|
||||
"path": "holeManager/gUnk_08108764_26.bin",
|
||||
"path": "holeManager/gHoleTransitions_26.bin",
|
||||
"start": 1084332,
|
||||
"size": 124
|
||||
},
|
||||
|
||||
@@ -3,192 +3,3 @@
|
||||
|
||||
.section .rodata
|
||||
.align 2
|
||||
|
||||
HoleManager_Actions:: @ 08108668
|
||||
.4byte sub_0805B048
|
||||
.4byte sub_0805B168
|
||||
|
||||
gUnk_08108670:: @ 08108670
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_08108670_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_08108670_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
|
||||
gUnk_0810867C:: @ 0810867C
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_0810867C_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_0810867C_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
|
||||
gUnk_08108688:: @ 08108688
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_08108688_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_08108688_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
|
||||
gUnk_08108694:: @ 08108694
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_08108694_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_08108694_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
|
||||
gUnk_081086A0:: @ 081086A0
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_081086A0_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_081086A0_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
.incbin "holeManager/gUnk_081086A0_2.bin"
|
||||
|
||||
gUnk_081086AC:: @ 081086AC
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_081086AC_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_081086AC_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
|
||||
gUnk_081086B8:: @ 081086B8
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_081086B8_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_081086B8_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
|
||||
gUnk_081086C4:: @ 081086C4
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_081086C4_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_081086C4_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
|
||||
gUnk_081086D0:: @ 081086D0
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_081086D0_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_081086D0_1_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
.ifdef EU
|
||||
@ TODO only small differences
|
||||
.incbin "holeManager/gUnk_081086D0_2_EU.bin"
|
||||
.else
|
||||
.incbin "holeManager/gUnk_081086D0_3_USA-JP-DEMO_USA-DEMO_JP.bin"
|
||||
.endif
|
||||
|
||||
gUnk_081086DC:: @ 081086DC
|
||||
.incbin "holeManager/gUnk_081086DC.bin"
|
||||
|
||||
gUnk_081086E4:: @ 081086E4
|
||||
.incbin "holeManager/gUnk_081086E4.bin"
|
||||
|
||||
gUnk_081086EC:: @ 081086EC
|
||||
.incbin "holeManager/gUnk_081086EC.bin"
|
||||
|
||||
gUnk_081086F4:: @ 081086F4
|
||||
.incbin "holeManager/gUnk_081086F4.bin"
|
||||
|
||||
gUnk_081086FC:: @ 081086FC
|
||||
.incbin "holeManager/gUnk_081086FC.bin"
|
||||
|
||||
gUnk_08108704:: @ 08108704
|
||||
.incbin "holeManager/gUnk_08108704.bin"
|
||||
|
||||
gUnk_0810870C:: @ 0810870C
|
||||
.incbin "holeManager/gUnk_0810870C.bin"
|
||||
|
||||
gUnk_08108714:: @ 08108714
|
||||
.incbin "holeManager/gUnk_08108714.bin"
|
||||
|
||||
gUnk_0810871C:: @ 0810871C
|
||||
.incbin "holeManager/gUnk_0810871C.bin"
|
||||
|
||||
gUnk_08108724:: @ 08108724
|
||||
.incbin "holeManager/gUnk_08108724.bin"
|
||||
|
||||
gUnk_0810872C:: @ 0810872C
|
||||
.incbin "holeManager/gUnk_0810872C.bin"
|
||||
|
||||
gUnk_08108734:: @ 08108734
|
||||
.incbin "holeManager/gUnk_08108734.bin"
|
||||
|
||||
gUnk_0810873C:: @ 0810873C
|
||||
.incbin "holeManager/gUnk_0810873C.bin"
|
||||
|
||||
gUnk_08108744:: @ 08108744
|
||||
.incbin "holeManager/gUnk_08108744.bin"
|
||||
|
||||
gUnk_0810874C:: @ 0810874C
|
||||
.incbin "holeManager/gUnk_0810874C.bin"
|
||||
|
||||
gUnk_08108754:: @ 08108754
|
||||
.incbin "holeManager/gUnk_08108754.bin"
|
||||
|
||||
gUnk_0810875C:: @ 0810875C
|
||||
.incbin "holeManager/gUnk_0810875C.bin"
|
||||
|
||||
gUnk_08108764:: @ 08108764
|
||||
.incbin "holeManager/gUnk_08108764.bin"
|
||||
.4byte gUnk_08108670
|
||||
.incbin "holeManager/gUnk_08108764_1.bin"
|
||||
.4byte gUnk_08108688
|
||||
.incbin "holeManager/gUnk_08108764_2.bin"
|
||||
.4byte gUnk_0810875C
|
||||
.incbin "holeManager/gUnk_08108764_3.bin"
|
||||
.4byte gUnk_08108694
|
||||
.incbin "holeManager/gUnk_08108764_4.bin"
|
||||
.4byte gUnk_081086A0
|
||||
.incbin "holeManager/gUnk_08108764_5.bin"
|
||||
.4byte gUnk_081086AC
|
||||
.incbin "holeManager/gUnk_08108764_6.bin"
|
||||
.4byte gUnk_081086DC
|
||||
.incbin "holeManager/gUnk_08108764_7.bin"
|
||||
.4byte gUnk_081086E4
|
||||
.incbin "holeManager/gUnk_08108764_8.bin"
|
||||
.4byte gUnk_081086EC
|
||||
.incbin "holeManager/gUnk_08108764_9.bin"
|
||||
.4byte gUnk_081086F4
|
||||
.incbin "holeManager/gUnk_08108764_10.bin"
|
||||
.4byte gUnk_0810867C
|
||||
.incbin "holeManager/gUnk_08108764_11.bin"
|
||||
.4byte gUnk_081086FC
|
||||
.incbin "holeManager/gUnk_08108764_12.bin"
|
||||
.4byte gUnk_08108704
|
||||
.incbin "holeManager/gUnk_08108764_13.bin"
|
||||
.4byte gUnk_0810870C
|
||||
.incbin "holeManager/gUnk_08108764_14.bin"
|
||||
.4byte gUnk_08108714
|
||||
.incbin "holeManager/gUnk_08108764_15.bin"
|
||||
.4byte gUnk_0810871C
|
||||
.incbin "holeManager/gUnk_08108764_16.bin"
|
||||
.4byte gUnk_08108724
|
||||
.incbin "holeManager/gUnk_08108764_17.bin"
|
||||
.4byte gUnk_0810872C
|
||||
.incbin "holeManager/gUnk_08108764_18.bin"
|
||||
.4byte gUnk_08108734
|
||||
.incbin "holeManager/gUnk_08108764_19.bin"
|
||||
.4byte gUnk_0810873C
|
||||
.incbin "holeManager/gUnk_08108764_20.bin"
|
||||
.4byte gUnk_08108744
|
||||
.incbin "holeManager/gUnk_08108764_21.bin"
|
||||
.4byte gUnk_0810874C
|
||||
.incbin "holeManager/gUnk_08108764_22.bin"
|
||||
.4byte gUnk_08108754
|
||||
.incbin "holeManager/gUnk_08108764_23.bin"
|
||||
.4byte gUnk_081086B8
|
||||
.incbin "holeManager/gUnk_08108764_24.bin"
|
||||
.4byte gUnk_081086C4
|
||||
.incbin "holeManager/gUnk_08108764_25.bin"
|
||||
.4byte gUnk_081086D0
|
||||
.incbin "holeManager/gUnk_08108764_26.bin"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
thumb_func_start CreateDustFromScript
|
||||
CreateDustFromScript:
|
||||
push {lr}
|
||||
bl CreateDust
|
||||
bl CreateDeathFx
|
||||
pop {pc}
|
||||
|
||||
@@ -6,7 +6,7 @@ SCRIPT_START script_CutsceneMiscObjectOctorok1
|
||||
SetAnimation 0x0001
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,7 +6,7 @@ SCRIPT_START script_CutsceneMiscObjectOctorok2
|
||||
SetAnimation 0x0002
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000002
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,7 +6,7 @@ SCRIPT_START script_CutsceneMiscObjectOctorok3
|
||||
SetAnimation 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,7 +6,7 @@ SCRIPT_START script_CutsceneMiscObjectOctorok4
|
||||
SetAnimation 0x0003
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,7 +6,7 @@ SCRIPT_START script_CutsceneMiscObjectTektite1
|
||||
SetAnimation 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000001
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,7 +6,7 @@ SCRIPT_START script_CutsceneMiscObjectTektite2
|
||||
SetAnimation 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000002
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,7 +6,7 @@ SCRIPT_START script_CutsceneMiscObjectTektite3
|
||||
SetAnimation 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000004
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -6,7 +6,7 @@ SCRIPT_START script_CutsceneMiscObjectTektite4
|
||||
SetAnimation 0x0000
|
||||
EndBlock
|
||||
WaitForSyncFlagAndClear 0x00000008
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
DoPostScriptAction 0x0006
|
||||
SCRIPT_END
|
||||
.2byte 0x0000
|
||||
|
||||
@@ -39,7 +39,7 @@ SCRIPT_START script_MinishEzloGoodbye
|
||||
Wait 0x001e
|
||||
SetSyncFlag 0x00000020
|
||||
StopBgm
|
||||
Call CreateDust
|
||||
Call CreateDeathFx
|
||||
Call sub_0806305C
|
||||
Call sub_080630A4
|
||||
_0807EF3C 0x0000, 0x0020
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
#ifndef AFFINE_H
|
||||
#define AFFINE_H
|
||||
|
||||
#include "gba/types.h"
|
||||
|
||||
typedef struct {
|
||||
s16 x;
|
||||
s16 y;
|
||||
u16 _4;
|
||||
u16 _6;
|
||||
u16 _8;
|
||||
} OAMCommand;
|
||||
extern OAMCommand gOamCmd;
|
||||
|
||||
extern void FlushSprites(void);
|
||||
extern void CopyOAM(void);
|
||||
extern void DrawEntities(void);
|
||||
extern void sub_080ADA04(OAMCommand*, void*);
|
||||
extern void DrawDirect(u32 spriteIndex, u32 frameIndex);
|
||||
|
||||
#endif // AFFINE_H
|
||||
+1
-1
@@ -83,7 +83,7 @@ typedef struct {
|
||||
u16 pixel_width;
|
||||
u16 pixel_height;
|
||||
u16 tileSet_id;
|
||||
} FORCE_WORD_ALIGNED RoomHeader;
|
||||
} PACKED ALIGNED(2) RoomHeader;
|
||||
static_assert(sizeof(RoomHeader) == 0xa);
|
||||
extern RoomHeader* gAreaRoomHeaders[];
|
||||
|
||||
|
||||
+13
-7
@@ -11,10 +11,7 @@ extern void SetTile(u32 tileIndex, u32 tilePos, u32 layer);
|
||||
|
||||
extern void UpdateScrollVram(void);
|
||||
extern u32 sub_080B1BA4(u32, u32, u32);
|
||||
extern void LoadResourceAsync(const void* src, u32 dest, u32 size);
|
||||
extern void GenericConfused(struct Entity_*);
|
||||
extern void sub_08001290(struct Entity_*, u32);
|
||||
extern void GenericKnockback(struct Entity_*);
|
||||
extern void LoadResourceAsync(const void* src, void* dest, u32 size);
|
||||
extern u32 GetFuserId(struct Entity_*);
|
||||
#define GetFuserIdAndFuserTextId(ent) ((union SplitDWord)(*(MultiReturnTypeSingleEntityArg)(&GetFuserId))(ent))
|
||||
extern u32 CheckPlayerInRegion(u32 centerX, u32 centerY, u32 radiusX, u32 radiusY);
|
||||
@@ -39,12 +36,9 @@ extern void sub_08004596(struct Entity_*, u32);
|
||||
extern u32 sub_080045B4(struct Entity_*, u32, u32);
|
||||
extern u32 CalculateDirectionTo(u32, u32, u32, u32);
|
||||
extern u32 CalculateDirectionFromOffsets(s32, s32);
|
||||
extern u32 sub_080086B4(u32, u32, const u8*);
|
||||
extern u32 ResolveCollisionLayer(struct Entity_*);
|
||||
extern void sub_0800417E(struct Entity_*, u32);
|
||||
extern u32 sub_0800442E(struct Entity_*);
|
||||
extern void SoundReqClipped(struct Entity_*, u32);
|
||||
extern u32 sub_0800132C(struct Entity_*, struct Entity_*);
|
||||
|
||||
extern u32 sub_0800445C(struct Entity_*);
|
||||
extern u32 CheckRectOnScreen(s32, s32, u32, u32);
|
||||
@@ -106,4 +100,16 @@ typedef struct {
|
||||
*/
|
||||
extern u32 FindValueForKey(u32 key, const KeyValuePair* keyValuePairList);
|
||||
|
||||
extern u32 GetTileIndex(u32 tilePos, u32 layer);
|
||||
extern void LinearMoveDirectionOLD(struct Entity_*, u32, u32);
|
||||
extern void sub_080028E0(struct Entity_*);
|
||||
extern void SnapToTile(struct Entity_*);
|
||||
extern u32 sub_0800419C(struct Entity_*, struct Entity_*, u32, u32);
|
||||
extern u32 sub_080041DC(struct Entity_*, u32, u32);
|
||||
extern void sub_080042BA(struct Entity_*, u32);
|
||||
extern void sub_080042D0(struct Entity_*, u32, u16);
|
||||
extern void sub_080044AE(struct Entity_*, u32, u32);
|
||||
extern void sub_0800451C(struct Entity_*);
|
||||
extern void sub_08004542(struct Entity_*);
|
||||
|
||||
#endif // ASM_H
|
||||
|
||||
@@ -32,4 +32,7 @@ extern BgAnimation gBgAnimations[MAX_BG_ANIMATIONS];
|
||||
extern const u16* const gUnk_080B755C[];
|
||||
extern const u16 gUnk_080B77C0[];
|
||||
|
||||
extern void LoadBgAnimations(u16*);
|
||||
extern void ClearBgAnimations(void);
|
||||
|
||||
#endif // BACKGROUNDANIMATIONS_H
|
||||
|
||||
@@ -28,4 +28,36 @@ void LoadMapData(MapDataDefinition* dataDefinition);
|
||||
*/
|
||||
void RenderMapLayerToSubTileMap(u16* tileMap, MapLayer* mapLayer);
|
||||
|
||||
extern void sub_0801AFE4(void);
|
||||
extern void SetBGDefaults(void);
|
||||
|
||||
typedef struct {
|
||||
s16 tileIndex;
|
||||
s16 tilePosOffset;
|
||||
} TileData;
|
||||
|
||||
/**
|
||||
* @brief Sets multiple tiles at once
|
||||
*
|
||||
* @param tileData [u16 tileIndex, s16 positionOffset], ends with 0xffff
|
||||
* @param basePosition the position the offsets in tileData are based on
|
||||
* @param layer the tile layer
|
||||
*/
|
||||
extern void SetMultipleTiles(const TileData* tileData, u32 basePosition, u32 layer);
|
||||
|
||||
typedef struct {
|
||||
u8 unk_0;
|
||||
u8 unk_1;
|
||||
u8 unk_2[2];
|
||||
u16 unk_4;
|
||||
u8 filler[12];
|
||||
struct Entity_* unk_14;
|
||||
u8 unk_18;
|
||||
u8 unk_19;
|
||||
u8 unk_1a;
|
||||
u8 unk_1b;
|
||||
} struct_02018EB0;
|
||||
|
||||
extern struct_02018EB0 gUnk_02018EB0;
|
||||
|
||||
#endif // BEANSTALKSUBTASK_H
|
||||
|
||||
@@ -67,4 +67,6 @@ u32 sub_080176E4(Entity*);
|
||||
|
||||
extern const u8 gMapTileTypeToActTile[]; // actTile for tileType?
|
||||
|
||||
extern u32 sub_0801766C(Entity*);
|
||||
|
||||
#endif // COLLISION_H
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ typedef struct {
|
||||
u16 unk_02;
|
||||
union SplitWord unk_04;
|
||||
union SplitWord unk_08;
|
||||
u32 unk_0C;
|
||||
void* unk_0C;
|
||||
} struct_gUnk_020000C0_1;
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -143,4 +143,6 @@ typedef struct {
|
||||
u32 mapDataOffset;
|
||||
} DungeonLayout;
|
||||
|
||||
extern void sub_0801E104(void);
|
||||
|
||||
#endif // COMMON_H
|
||||
|
||||
@@ -115,4 +115,23 @@ typedef enum {
|
||||
FX_6C
|
||||
} Effect;
|
||||
|
||||
Entity* CreateFx(Entity* parent, Effect type, u32 type2);
|
||||
void CreateDeathFx(Entity* parent);
|
||||
void CreateDeathFxAt(s32 xOff, s32 yOff, u32 layer);
|
||||
void CreateDashFx(Entity* parent);
|
||||
void CreateExplosionBrokenFx(Entity* parent);
|
||||
void CreateWaterSplashFx(Entity* parent);
|
||||
Entity* CreateRippleFx(Entity* parent);
|
||||
void CreateRippleFxRandom(Entity* parent, s32 range);
|
||||
Entity* CreateLargeRippleFx(Entity* parent);
|
||||
void CreateLargeRippleFxRandom(Entity* parent, s32 minDistance, s32 maxDistance);
|
||||
void CreateSparkleFx(Entity* parent);
|
||||
|
||||
extern void CreateDrownFx(Entity*);
|
||||
extern void CreateLavaDrownFx(Entity* parent);
|
||||
extern void CreateSwampDrownFx(Entity* parent);
|
||||
extern void CreatePitFallFx(Entity* parent);
|
||||
|
||||
void CreateMagicSparklesFxAt(u32 baseX, u32 baseY, u32 layer);
|
||||
|
||||
#endif // EFFECTS_H
|
||||
|
||||
+8
-8
@@ -2,15 +2,7 @@
|
||||
#define ENEMY_H
|
||||
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "flags.h"
|
||||
#include "common.h"
|
||||
|
||||
#include "entity.h"
|
||||
#include "projectile.h"
|
||||
|
||||
#define EM_FLAG_BOSS (1 << 0)
|
||||
#define EM_FLAG_BOSS_KILLED (1 << 1)
|
||||
@@ -76,6 +68,14 @@ bool32 sub_08049F1C(Entity*, Entity*, s32);
|
||||
bool32 PlayerInRange(Entity*, u32, s32);
|
||||
void EnemyCopyParams(Entity*, Entity*);
|
||||
void GenericKnockback2(Entity*);
|
||||
extern void GenericConfused(struct Entity_*);
|
||||
|
||||
extern void sub_08001318(Entity*);
|
||||
extern void sub_08001290(Entity*, u32);
|
||||
extern u32 sub_0800132C(struct Entity_*, struct Entity_*);
|
||||
|
||||
extern void StealRupees(Entity*);
|
||||
extern void EnemyDisableRespawn(Enemy*);
|
||||
|
||||
enum {
|
||||
/*0x00*/ OCTOROK,
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef ARMOS_H
|
||||
#define ARMOS_H
|
||||
|
||||
#include "gba/types.h"
|
||||
|
||||
void Armos_SetFlagFromTransition(u32 armosId);
|
||||
|
||||
#endif // ARMOS_H
|
||||
+11
-5
@@ -3,7 +3,6 @@
|
||||
#define ENTITY_H
|
||||
|
||||
#include "global.h"
|
||||
#include "color.h"
|
||||
#include "sprite.h"
|
||||
|
||||
#define MAX_ENTITIES 72
|
||||
@@ -325,10 +324,7 @@ bool32 ProcessMovement0(Entity*);
|
||||
Entity* GetEmptyEntity(void);
|
||||
Entity* CreateEnemy(u32 id, u32 type);
|
||||
Entity* CreateNPC(u32 id, u32 type, u32 type2);
|
||||
Entity* CreateObject(u32 id, u32 type, u32 type2);
|
||||
Entity* CreateObjectWithParent(Entity* parent, u32 id, u32 type, u32 type2);
|
||||
Entity* CreateAuxPlayerEntity(void);
|
||||
Entity* CreateFx(Entity* parent, u32 type, u32 type2);
|
||||
/// @}
|
||||
|
||||
/**
|
||||
@@ -540,6 +536,16 @@ typedef struct {
|
||||
} CarriedEntity;
|
||||
extern CarriedEntity gCarriedEntity;
|
||||
|
||||
typedef struct {
|
||||
u8 event_priority; /**< system requested priority @see Priority */
|
||||
u8 ent_priority; /**< entity requested priority @see Priority */
|
||||
u8 queued_priority; /**< @see Priority */
|
||||
u8 queued_priority_reset; /**< @see Priority */
|
||||
Entity* requester;
|
||||
u16 priority_timer;
|
||||
} PriorityHandler;
|
||||
extern PriorityHandler gPriorityHandler;
|
||||
|
||||
/**
|
||||
* Current number of entities.
|
||||
* @see Entity
|
||||
@@ -560,7 +566,7 @@ extern u8 gManagerCount;
|
||||
#define TILE(x, y) (((((x)-gRoomControls.origin_x) >> 4) & 0x3F) | ((((y)-gRoomControls.origin_y) >> 4) & 0x3F) << 6)
|
||||
// Calculate tilePos from x and y coordinates where x and y are already relative to the current room.
|
||||
#define TILE_LOCAL(x, y) ((((x) >> 4) & 0x3F) | (((y) >> 4) & 0x3F) << 6)
|
||||
#define TILE_POS(x, y) (x + (y << 6))
|
||||
#define TILE_POS(x, y) ((x) + ((y) << 6))
|
||||
#define TILE_POS_X_COMPONENT 0x3f
|
||||
#define TILE_POS_Y_COMPONENT 0xfc0
|
||||
#define COORD_TO_TILE(entity) TILE((entity)->x.HALF.HI, (entity)->y.HALF.HI)
|
||||
|
||||
@@ -100,4 +100,10 @@ void FadeVBlank(void);
|
||||
*/
|
||||
void ResetFadeMask(void);
|
||||
|
||||
extern u32 gUsedPalettes;
|
||||
#define USE_PALETTE(i) \
|
||||
do { \
|
||||
gUsedPalettes |= 1 << (i); \
|
||||
} while (0)
|
||||
|
||||
#endif // FADE_H
|
||||
|
||||
+1
-18
@@ -1,9 +1,9 @@
|
||||
#ifndef FILESELECT_H
|
||||
#define FILESELECT_H
|
||||
|
||||
#include "sound.h"
|
||||
#include "global.h"
|
||||
#include "save.h"
|
||||
#include "message.h"
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 unk_0x0;
|
||||
@@ -23,19 +23,6 @@ static_assert(sizeof(ChooseFileState) == 0x30);
|
||||
// TODO: This occupies the same memory region as gMenu
|
||||
extern ChooseFileState gChooseFileState;
|
||||
|
||||
// typedef struct {
|
||||
// u8 unk00 : 4;
|
||||
// u8 unk04 : 4;
|
||||
// u8 unk1;
|
||||
// u8 charColor;
|
||||
// u8 bgColor;
|
||||
// u16 unk4;
|
||||
// u16 unk6;
|
||||
// u8* unk8;
|
||||
// } struct_02036540;
|
||||
|
||||
extern struct_020227E8 gUnk_020227E8[];
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 isTransitioning;
|
||||
/*0x01*/ u8 unk1;
|
||||
@@ -51,13 +38,9 @@ typedef struct {
|
||||
extern struct_02019EE0 gMapDataBottomSpecial;
|
||||
// TODO size: 0x8000 from ClearTileMaps?
|
||||
|
||||
extern void sub_08056FEC(u32, struct_020227E8*);
|
||||
extern u32 ShowTextBox(u32 textIndexOrPtr, const Font* font);
|
||||
extern void ClearTileMaps(void);
|
||||
extern void ResetSaveFile(u32);
|
||||
extern WStruct* sub_0805F2C8(void);
|
||||
extern u32 sub_0805F7DC(u32, WStruct*);
|
||||
extern void sub_0805F300(WStruct*);
|
||||
extern void sub_08050A64(u32);
|
||||
extern void sub_08050AFC(u32);
|
||||
extern void sub_08050384();
|
||||
|
||||
+2
-99
@@ -2,105 +2,8 @@
|
||||
#define FUNCTIONS_H
|
||||
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "manager.h"
|
||||
#include "physics.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "structures.h"
|
||||
#include "script.h"
|
||||
#include "map.h"
|
||||
|
||||
// Identified - to be sorted into header files
|
||||
extern u32 CheckRegionOnScreen(u32, u32, u32, u32);
|
||||
extern void CopyOAM(void);
|
||||
extern void CreateLavaDrownFX(Entity*);
|
||||
extern Entity* CreateGroundItem(Entity*, u32, u32);
|
||||
extern Entity* CreateGroundItemWithFlags(Entity*, u32, u32, u32);
|
||||
extern void CreatePitFallFX(Entity*);
|
||||
extern void CreateMagicSparkles(u32, u32, u32);
|
||||
extern void CreateMinishEntrance(u32 tile);
|
||||
extern u32 CreateRandomItemDrop(Entity*, u32);
|
||||
extern void DrawDirect(u32 spriteIndex, u32 frameIndex);
|
||||
extern void DrawEntities(void);
|
||||
extern void FlushSprites(void);
|
||||
extern u32 GetTileIndex(u32 tilePos, u32 layer);
|
||||
extern u32 GiveItem(u32, u32);
|
||||
extern bool32 LoadFixedGFX(Entity*, u32);
|
||||
extern void LoadResources(void);
|
||||
extern bool32 LoadSwapGFX(Entity*, u16, u32);
|
||||
extern void MenuFadeIn(u32, u32);
|
||||
extern void SetDirtTile(u32);
|
||||
/**
|
||||
* @brief Sets multiple tiles at once
|
||||
*
|
||||
* @param tileData [u16 tileIndex, s16 positionOffset], ends with 0xffff
|
||||
* @param basePosition the position the offsets in tileData are based on
|
||||
* @param layer the tile layer
|
||||
*/
|
||||
extern void SetMultipleTiles(const TileData* tileData, u32 basePosition, u32 layer);
|
||||
extern void TryLoadPrologueHyruleTown(void);
|
||||
extern void UnloadGFXSlots(Entity*);
|
||||
extern void UnloadOBJPalette(Entity*);
|
||||
extern void UpdateDisplayControls(void);
|
||||
extern void ClearBgAnimations(void);
|
||||
extern void SetBGDefaults(void);
|
||||
|
||||
// Unidentified
|
||||
extern s32 sub_080012DC(Entity*);
|
||||
extern void sub_08001318(Entity*);
|
||||
extern void LinearMoveDirectionOLD(Entity*, u32, u32);
|
||||
extern void sub_080028E0(Entity*);
|
||||
extern u32 sub_080040A2(Entity*);
|
||||
extern u32 sub_080040D8(Entity*, u8*, s32, s32);
|
||||
extern void SnapToTile(Entity*);
|
||||
extern u32 sub_0800419C(Entity*, Entity*, u32, u32);
|
||||
extern u32 sub_080041DC(Entity*, u32, u32);
|
||||
extern void sub_080042BA(Entity*, u32);
|
||||
extern void sub_080042D0(Entity*, u32, u16);
|
||||
extern void CreateDrownFX(Entity*);
|
||||
extern u32 sub_0800445C(Entity*);
|
||||
extern void sub_080044AE(Entity*, u32, u32);
|
||||
extern u32 BounceUpdate(Entity*, u32);
|
||||
extern void sub_0800451C(Entity*);
|
||||
extern void sub_08004542(Entity*);
|
||||
extern void sub_080085B0(Entity*);
|
||||
extern u16* DoTileInteraction(Entity*, u32, u32, u32);
|
||||
extern void UpdateCollisionLayer(Entity*);
|
||||
extern u32 sub_0801766C(Entity*);
|
||||
extern void sub_0801AFE4(void);
|
||||
extern void UpdateUIElements(void);
|
||||
extern void sub_0801E104(void);
|
||||
extern void sub_08030118(u32);
|
||||
extern void sub_0803C0AC(Entity*);
|
||||
extern void EnemyDisableRespawn(Entity*);
|
||||
extern u32 sub_0804A024(Entity*, u32, u32);
|
||||
extern u32 IsMinishItem(u32);
|
||||
extern void DisableRandomDrops();
|
||||
extern void EnableRandomDrops(void);
|
||||
extern s32 sub_08056338(void);
|
||||
extern void sub_080575C8(u32);
|
||||
extern void sub_08057688(void);
|
||||
extern void sub_080580B0(u32);
|
||||
extern void sub_08058324(u32);
|
||||
extern void sub_08059278(void);
|
||||
extern void LoadStaticBackground(u32);
|
||||
extern void sub_0805BC4C(void);
|
||||
extern void sub_0805EC60(Entity*);
|
||||
extern void InitPlayerMacro(PlayerMacroEntry*);
|
||||
extern u32* sub_0805F25C(u32);
|
||||
extern void sub_0805F8E4(u32 r0, WStruct* r1);
|
||||
extern void sub_0806D0B0(Entity*);
|
||||
extern bool32 sub_080806BC(u32, u32, u32, u32);
|
||||
extern void sub_0808091C(const ScreenTransitionData* screenTransition, u32 transitionType);
|
||||
extern void sub_080809D4(void);
|
||||
extern void sub_08080CB4(Entity*);
|
||||
extern u32 sub_0808288C(Entity*, u32, u32, u32);
|
||||
extern bool32 sub_08083734(Entity*, u32);
|
||||
extern void sub_08095C48(Entity*);
|
||||
extern void sub_080A57F4(void);
|
||||
extern void sub_080A71C4(u32, u32, u32, u32);
|
||||
extern void sub_080ADD70(void);
|
||||
extern void sub_080AF284(void);
|
||||
extern u32 sub_0804A024(struct Entity_*, u32, u32);
|
||||
extern void sub_0805EC60(struct Entity_*);
|
||||
|
||||
#endif // FUNCTIONS_H
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "global.h"
|
||||
#include "area.h"
|
||||
#include "structures.h"
|
||||
#include "message.h"
|
||||
|
||||
/**
|
||||
* Change the light level of the room.
|
||||
@@ -200,7 +200,7 @@ void InitParachuteRoom(void);
|
||||
* @param onEnter Room enter callback.
|
||||
* @param onExit Room exit callback.
|
||||
*/
|
||||
void RegisterTransitionManager(void* mgr, void (*onEnter)(void*), void (*onExit)(void*));
|
||||
void RegisterTransitionHandler(void* mgr, void (*onEnter)(), void (*onExit)());
|
||||
|
||||
/**
|
||||
* Call the room exit callback.
|
||||
|
||||
@@ -16,9 +16,13 @@
|
||||
|
||||
#define NAKED __attribute__((naked))
|
||||
#define UNUSED __attribute__((unused))
|
||||
#ifdef __CLION_IDE__
|
||||
#define PACKED
|
||||
#define ALIGNED(n)
|
||||
#else
|
||||
#define PACKED __attribute__((packed))
|
||||
|
||||
#define ALIGNED(n) __attribute__((aligned(n)))
|
||||
#endif
|
||||
|
||||
#define SOUND_INFO_PTR (*(struct SoundInfo**)0x3007FF0)
|
||||
#define INTR_CHECK (*(u16*)0x3007FF8)
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef GFX_H
|
||||
#define GFX_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
extern const u8 gGlobalGfxAndPalettes[];
|
||||
|
||||
#endif // GFX_H
|
||||
+11
-1
@@ -5,6 +5,12 @@
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
|
||||
extern u32 GiveItem(u32, u32);
|
||||
extern u32 CreateRandomItemDrop(Entity*, u32);
|
||||
extern void DisableRandomDrops();
|
||||
extern void EnableRandomDrops(void);
|
||||
extern u32 IsMinishItem(u32);
|
||||
|
||||
void CreateItemEntity(u32, u32, u32);
|
||||
extern void ExecuteItemFunction(ItemBehavior* this, u32 index);
|
||||
|
||||
@@ -153,7 +159,11 @@ typedef enum {
|
||||
} Item;
|
||||
|
||||
/** Slot that the item is equipped in. */
|
||||
typedef enum { EQUIP_SLOT_A, EQUIP_SLOT_B, EQUIP_SLOT_NONE } EquipSlot;
|
||||
typedef enum {
|
||||
EQUIP_SLOT_A,
|
||||
EQUIP_SLOT_B,
|
||||
EQUIP_SLOT_NONE,
|
||||
} EquipSlot;
|
||||
|
||||
/** Function used to create the item. */
|
||||
typedef enum {
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef ITEMDEFINITIONS_H
|
||||
#define ITEMDEFINITIONS_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ bool8 isOnlyActiveFirstFrame; /**< Is the behavior for this item only created on the first frame */
|
||||
/*0x01*/ u8 priority;
|
||||
/*0x02*/ u8 createFunc;
|
||||
/*0x03*/ u8 playerItemId; /**< Id for the corresponsing PlayerItem. */
|
||||
/*0x04*/ u16 frameIndex;
|
||||
/*0x06*/ u8 animPriority;
|
||||
/*0x07*/ bool8 isChangingAttackStatus;
|
||||
/*0x08*/ bool8 isUseableAsMinish;
|
||||
/*0x09*/ u8 pad[3];
|
||||
} ItemDefinition;
|
||||
|
||||
static_assert(sizeof(ItemDefinition) == 0xc);
|
||||
|
||||
#endif // ITEMDEFINITIONS_H
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
extern void CreateMinishEntrance(u32 tile);
|
||||
extern void sub_08018C58(u32);
|
||||
|
||||
typedef enum {
|
||||
|
||||
+15
-1
@@ -2,10 +2,11 @@
|
||||
#define MAIN_H
|
||||
|
||||
#include "global.h"
|
||||
#include "structures.h"
|
||||
#include "room.h"
|
||||
#include "script.h"
|
||||
#include "screen.h"
|
||||
#include "vram.h"
|
||||
#include "color.h"
|
||||
|
||||
/** File signature */
|
||||
#define SIGNATURE 'MCZ3'
|
||||
@@ -101,6 +102,18 @@ static_assert(sizeof(UI) == 0x3b4);
|
||||
extern Main gMain; /**< Main instance. */
|
||||
extern UI gUI; /**< UI instance. */
|
||||
|
||||
typedef struct {
|
||||
s32 signature;
|
||||
u8 field_0x4;
|
||||
u8 listenForKeyPresses;
|
||||
u8 field_0x6;
|
||||
u8 field_0x7;
|
||||
u8 pad[24];
|
||||
} struct_02000010;
|
||||
static_assert(sizeof(struct_02000010) == 0x20);
|
||||
|
||||
extern struct_02000010 gUnk_02000010;
|
||||
|
||||
/**
|
||||
* Program entry point.
|
||||
*/
|
||||
@@ -158,6 +171,7 @@ extern void DemoTask(void);
|
||||
extern u8 gUnk_03003DE4[0xC];
|
||||
extern u16 gPaletteBuffer[];
|
||||
|
||||
extern u32 CheckRegionOnScreen(u32, u32, u32, u32);
|
||||
extern u32 CheckRegionsOnScreen(const u16* arr);
|
||||
|
||||
#endif // MAIN_H
|
||||
|
||||
@@ -152,11 +152,6 @@ extern void (*const gMiscManagerunctions[58])();
|
||||
|
||||
Manager* GetEmptyManager(void);
|
||||
|
||||
/**
|
||||
* @brief Set manager responsible for handling room changes
|
||||
*/
|
||||
extern void RegisterTransitionManager(void* mgr, void (*onEnter)(), void (*onExit)());
|
||||
|
||||
extern u32 sub_0805ACC0(Entity*);
|
||||
extern void sub_0801855C(void);
|
||||
extern void SetNextAreaHint(u32 textId);
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
typedef struct FlagAndOperatorManager {
|
||||
Manager base;
|
||||
u8 unk_20[0x1C];
|
||||
u16 unk_3c;
|
||||
u16 unk_3e;
|
||||
u16 setFlag;
|
||||
u16 checkFlags;
|
||||
} FlagAndOperatorManager;
|
||||
|
||||
#endif // FLAGANDOPERATORMANAGER_H
|
||||
|
||||
@@ -5,15 +5,15 @@
|
||||
|
||||
typedef struct {
|
||||
Manager base;
|
||||
s16 unk_20;
|
||||
s16 unk_22;
|
||||
u16 unk_24;
|
||||
u16 unk_26;
|
||||
s16 x;
|
||||
s16 y;
|
||||
u16 width;
|
||||
u16 height;
|
||||
u8 unk_28[8];
|
||||
u16 unk_30;
|
||||
u16 unk_32;
|
||||
u16 unk_34;
|
||||
u16 unk_36;
|
||||
u16 persistance_x;
|
||||
u16 persistance_y;
|
||||
u16 persistance_offset_x;
|
||||
u16 persistance_offset_y;
|
||||
u8 unk_38[7];
|
||||
u8 unk_3f;
|
||||
} HoleManager;
|
||||
|
||||
@@ -11,4 +11,6 @@ typedef struct {
|
||||
u32 unk_3c;
|
||||
} HorizontalMinishPathBackgroundManager;
|
||||
|
||||
extern void sub_080580B0(u32);
|
||||
|
||||
#endif // HORIZONTALMINISHPATHBACKGROUNDMANAGER_H
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
|
||||
typedef struct {
|
||||
Manager base;
|
||||
u8 field_0x20;
|
||||
u8 field_0x21;
|
||||
u8 field_0x22;
|
||||
u8 gfxGroup0;
|
||||
u8 gfxGroup1;
|
||||
u8 gfxGroup2;
|
||||
} HyruleTownTileSetManager;
|
||||
|
||||
extern void TryLoadPrologueHyruleTown(void);
|
||||
|
||||
#endif // HYRULETOWNTILESETMANAGER_H
|
||||
|
||||
@@ -8,4 +8,6 @@ typedef struct {
|
||||
s32 unk20;
|
||||
} LightManager;
|
||||
|
||||
extern void UnDarkRoom(void);
|
||||
|
||||
#endif // LIGHTMANAGER_H
|
||||
|
||||
@@ -16,7 +16,7 @@ typedef struct {
|
||||
s16 unk_38;
|
||||
u16 unk_3a;
|
||||
u16 unk_3c;
|
||||
u16 unk_3e;
|
||||
u16 flag;
|
||||
} Manager29;
|
||||
|
||||
#endif // MANAGER29_H
|
||||
|
||||
@@ -9,4 +9,6 @@ typedef struct {
|
||||
u32 unk_3c;
|
||||
} MinishRaftersBackgroundManager;
|
||||
|
||||
extern void sub_08058324(u32);
|
||||
|
||||
#endif // MINISHRAFTERSBACKGROUNDMANAGER_H
|
||||
|
||||
@@ -8,8 +8,11 @@ typedef struct {
|
||||
u8 unk_20[0x18];
|
||||
s16 x;
|
||||
s16 y;
|
||||
u16 unk_3c;
|
||||
u16 flags;
|
||||
u16 flag1;
|
||||
u16 flag2;
|
||||
} MiscManager;
|
||||
|
||||
extern void sub_08059278(void);
|
||||
extern void SetDirtTile(u32);
|
||||
|
||||
#endif // MISCMANAGER_H
|
||||
|
||||
@@ -8,4 +8,6 @@ typedef struct {
|
||||
u32 field_0x20;
|
||||
} StaticBackgroundManager;
|
||||
|
||||
extern void LoadStaticBackground(u32);
|
||||
|
||||
#endif // STATICBACKGROUNDMANAGER_H
|
||||
|
||||
@@ -18,8 +18,8 @@ typedef struct {
|
||||
s16 unk_36;
|
||||
s16 unk_38;
|
||||
s16 unk_3a;
|
||||
u16 unk_3c;
|
||||
u16 unk_3e; // used
|
||||
u16 flag;
|
||||
u16 localFlag; // used
|
||||
} TempleOfDropletsManager;
|
||||
|
||||
#endif // TEMPLEOFDROPLETSMANAGER_H
|
||||
|
||||
@@ -10,4 +10,7 @@ typedef struct {
|
||||
void* field_0x3c;
|
||||
} VerticalMinishPathBackgroundManager;
|
||||
|
||||
extern void sub_080575C8(u32);
|
||||
extern void sub_08057688(void);
|
||||
|
||||
#endif // VERTICALMINISHPATHBACKGROUNDMANAGER_H
|
||||
|
||||
+59
-5
@@ -3,10 +3,54 @@
|
||||
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "structures.h"
|
||||
|
||||
#define MESSAGE_ACTIVE 0x7f
|
||||
|
||||
typedef struct {
|
||||
u8 unk00 : 1;
|
||||
u8 unk01 : 3;
|
||||
u8 unk04 : 4;
|
||||
u8 unk1;
|
||||
u8 charColor;
|
||||
u8 bgColor;
|
||||
u16 unk4;
|
||||
u16 unk6;
|
||||
void* unk8;
|
||||
} WStruct;
|
||||
|
||||
static_assert(sizeof(WStruct) == 12);
|
||||
|
||||
typedef union {
|
||||
char s[8];
|
||||
u32 w[2];
|
||||
} String8;
|
||||
|
||||
extern String8 gUnk_020227E8[];
|
||||
extern u32 NumberToAscii(u32, String8*);
|
||||
extern WStruct* sub_0805F2C8(void);
|
||||
extern u32 sub_0805F7DC(u32, WStruct*);
|
||||
extern void sub_0805F300(WStruct*);
|
||||
extern void sub_0805F8E4(u32 r0, WStruct* r1);
|
||||
extern s32 sub_08056338(void);
|
||||
|
||||
typedef struct {
|
||||
u16* dest;
|
||||
void* gfx_dest;
|
||||
void* buffer_loc;
|
||||
u32 _c;
|
||||
u16 gfx_src;
|
||||
u8 width;
|
||||
u8 right_align : 1;
|
||||
u8 sm_border : 1;
|
||||
u8 unused : 1;
|
||||
u8 draw_border : 1;
|
||||
u8 border_type : 4;
|
||||
u8 fill_type;
|
||||
u8 charColor;
|
||||
u8 _16;
|
||||
u8 stylized;
|
||||
} Font;
|
||||
|
||||
typedef struct {
|
||||
u8 state;
|
||||
u8 unk;
|
||||
@@ -45,9 +89,11 @@ typedef struct {
|
||||
Token curToken;
|
||||
WStruct _50;
|
||||
char player_name[10];
|
||||
u8 _66[0x10];
|
||||
u8 _76;
|
||||
u8 _77[0x11];
|
||||
u8 _66[2];
|
||||
String8 _68;
|
||||
String8 _70;
|
||||
String8 _78;
|
||||
String8 _80;
|
||||
u8 msgStatus;
|
||||
u8 renderStatus;
|
||||
u8 newlineDelay;
|
||||
@@ -81,6 +127,14 @@ typedef struct {
|
||||
extern TextRender gTextRender;
|
||||
static_assert(sizeof(TextRender) == 0xa8);
|
||||
|
||||
typedef struct {
|
||||
u8 unk_00;
|
||||
u8 unk_01;
|
||||
u8 unk_02[0xE];
|
||||
} struct_02000040;
|
||||
|
||||
extern struct_02000040 gUnk_02000040;
|
||||
|
||||
/**
|
||||
* @brief Initialize the message system.
|
||||
*/
|
||||
@@ -138,7 +192,7 @@ void MessageClose(void);
|
||||
|
||||
void DispMessageFrame(u16*, s32, s32, u32);
|
||||
|
||||
void sub_08057044(u32, struct_020227E8*, u32);
|
||||
void NumberToAsciiPad3Digits(u32, String8*, u32);
|
||||
|
||||
typedef enum {
|
||||
TEXT_SAVE,
|
||||
|
||||
@@ -2,22 +2,7 @@
|
||||
#define NPC_H
|
||||
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "common.h"
|
||||
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "room.h"
|
||||
#include "flags.h"
|
||||
#include "physics.h"
|
||||
#include "message.h"
|
||||
#include "script.h"
|
||||
#include "save.h"
|
||||
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
|
||||
#include "structures.h"
|
||||
|
||||
typedef enum {
|
||||
DIALOG_ROOM_FLAG,
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef BIGGORON_H
|
||||
#define BIGGORON_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
extern void sub_0806D0B0(struct Entity_*);
|
||||
|
||||
#endif // BIGGORON_H
|
||||
+20
-30
@@ -1,37 +1,8 @@
|
||||
#ifndef OBJECT_H
|
||||
#define OBJECT_H
|
||||
|
||||
#include "global.h"
|
||||
#include "asm.h"
|
||||
#include "common.h"
|
||||
|
||||
#include "sound.h"
|
||||
#include "flags.h"
|
||||
#include "effects.h"
|
||||
#include "room.h"
|
||||
#include "physics.h"
|
||||
|
||||
#include "definitions.h"
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
|
||||
void AddInteractablePedestal(Entity*);
|
||||
void AddInteractableCheckableObject(Entity*);
|
||||
void sub_0808C650(Entity*, u32);
|
||||
u32 sub_0808C67C(void);
|
||||
void sub_0808C688(void);
|
||||
void SyncPlayerToPlatform(Entity*, bool32);
|
||||
void UpdateRailMovement(Entity*, u16**, u16*);
|
||||
void sub_080A2AF4(Entity*, s32, s32);
|
||||
Entity* CreateLargeWaterTrace(Entity*);
|
||||
void CreateSparkle(Entity*);
|
||||
|
||||
void CreateDust(Entity* parent);
|
||||
void CreateDustAt(s32, s32, u32);
|
||||
void CreateDustSmall(Entity* parent);
|
||||
Entity* CreateWaterTrace(Entity*);
|
||||
Entity* CreateSpeechBubbleQuestionMark(Entity*, s32, s32);
|
||||
Entity* CreateSpeechBubbleExclamationMark(Entity*, s32, s32);
|
||||
Entity* CreateSpeechBubbleSleep(Entity*, s32, s32);
|
||||
|
||||
typedef enum {
|
||||
GROUND_ITEM,
|
||||
@@ -230,6 +201,25 @@ typedef enum {
|
||||
LINK_ANIMATION,
|
||||
} Object;
|
||||
|
||||
Entity* CreateLinkAnimation(Entity* parent, u32 type, u32 type2);
|
||||
void ObjectInit(Entity* this);
|
||||
u32 LoadObjectSprite(Entity* this, s32 type, const ObjectDefinition* definition);
|
||||
Entity* CreateObject(Object id, u32 type, u32 type2);
|
||||
Entity* CreateObjectWithParent(Entity* parent, Object id, u32 type, u32 type2);
|
||||
extern Entity* CreateGroundItem(Entity*, u32 item, u32 subvalue);
|
||||
extern Entity* CreateGroundItemWithFlags(Entity*, u32 item, u32 subvalue, u32 flags);
|
||||
void SyncPlayerToPlatform(Entity* this, bool32 param_2);
|
||||
void UpdateRailMovement(Entity* this, u16** param_2, u16* param_3);
|
||||
Entity* CreateSpeechBubbleExclamationMark(Entity* parent, s32 offsetX, s32 offsetY);
|
||||
Entity* CreateSpeechBubbleQuestionMark(Entity* parent, s32 offsetX, s32 offsetY);
|
||||
Entity* CreateSpeechBubbleSleep(Entity* parent, s32 offsetX, s32 offsetY);
|
||||
|
||||
void AddInteractablePedestal(Entity*);
|
||||
void AddInteractableCheckableObject(Entity*);
|
||||
void sub_0808C650(Entity*, u32);
|
||||
u32 sub_0808C67C(void);
|
||||
void sub_0808C688(void);
|
||||
|
||||
void ItemOnGround();
|
||||
void DeathFx();
|
||||
void ItemForSale();
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef CUTSCENEMISCOBJECT_H
|
||||
#define CUTSCENEMISCOBJECT_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
extern void sub_08095C48(struct Entity_*);
|
||||
|
||||
#endif // CUTSCENEMISCOBJECT_H
|
||||
@@ -12,7 +12,7 @@ typedef struct {
|
||||
/*0x6c*/ u16 unk_6c;
|
||||
/*0x6e*/ u16 unk_6e;
|
||||
/*0x70*/ u8 unused2[22];
|
||||
/*0x86*/ u16 unk_86;
|
||||
/*0x86*/ u16 flag;
|
||||
} ItemOnGroundEntity;
|
||||
|
||||
#endif // ITEMONGROUND_H
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef LOCKEDDOOR_H
|
||||
#define LOCKEDDOOR_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
extern bool32 sub_08083734(struct Entity_*, u32);
|
||||
|
||||
#endif // LOCKEDDOOR_H
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef POT_H
|
||||
#define POT_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
extern u32 sub_0808288C(struct Entity_*, u32, u32, u32);
|
||||
|
||||
#endif // POT_H
|
||||
@@ -19,7 +19,7 @@ typedef struct {
|
||||
/*0x82*/ u8 unk_82;
|
||||
/*0x83*/ u8 unk_83;
|
||||
/*0x84*/ u8 unk_84[0x2];
|
||||
/*0x86*/ u16 unk_86;
|
||||
/*0x86*/ u16 flag;
|
||||
} PushableFurnitureEntity;
|
||||
|
||||
#endif // PUSHABLEFURNITURE_H
|
||||
|
||||
@@ -40,4 +40,20 @@ typedef enum {
|
||||
PauseMenuScreen_19,
|
||||
} PauseMenuScreen;
|
||||
|
||||
typedef struct {
|
||||
u8 disabled;
|
||||
u8 screen;
|
||||
u8 unk2[0xf]; // cursor positions on the different screens
|
||||
u8 unk11;
|
||||
u8 unk12;
|
||||
u8 unk13;
|
||||
s8 screen2;
|
||||
u8 unk15;
|
||||
s8 unk16;
|
||||
u8 unk17;
|
||||
} PauseMenuOptions;
|
||||
|
||||
extern PauseMenuOptions gPauseMenuOptions;
|
||||
static_assert(sizeof(PauseMenuOptions) == 0x18);
|
||||
|
||||
#endif // PAUSEMENU_H
|
||||
|
||||
@@ -55,8 +55,11 @@ extern bool32 ProcessMovement4(Entity*);
|
||||
extern bool32 ProcessMovement5(Entity*);
|
||||
extern bool32 ProcessMovement6(Entity*);
|
||||
extern bool32 ProcessMovementInternal(Entity*, s32, s32, u32);
|
||||
extern void sub_080AF284(void);
|
||||
|
||||
extern const s16 gSineTable[64];
|
||||
extern const s16 gCosineTable[256];
|
||||
|
||||
extern u32 BounceUpdate(Entity*, u32);
|
||||
|
||||
#endif // PHYSICS_H
|
||||
|
||||
@@ -609,6 +609,17 @@ typedef struct {
|
||||
/*0x18*/ Entity* field_0x18;
|
||||
} ItemBehavior;
|
||||
|
||||
typedef enum { ACTIVE_ITEM_0, ACTIVE_ITEM_1, ACTIVE_ITEM_2, ACTIVE_ITEM_LANTERN, MAX_ACTIVE_ITEMS } ActiveItemIndex;
|
||||
/**
|
||||
* Currently active items.
|
||||
* 0: Active items?
|
||||
* 1: Boots, Cape
|
||||
* 2: would be used by CreateItem1 if gActiveItems[1] was already filled
|
||||
* 3: Lamp
|
||||
*/
|
||||
extern ItemBehavior gActiveItems[MAX_ACTIVE_ITEMS];
|
||||
static_assert(sizeof(gActiveItems) == 0x70);
|
||||
|
||||
extern void (*const gPlayerItemFunctions[])(Entity*);
|
||||
|
||||
typedef struct {
|
||||
@@ -665,6 +676,37 @@ typedef enum {
|
||||
INTERACTION_NULL = 0xFF,
|
||||
} InteractionType;
|
||||
|
||||
typedef struct {
|
||||
s8 x;
|
||||
s8 y;
|
||||
s8 width;
|
||||
s8 height;
|
||||
} Rect;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 ignoreLayer; /* if bit 0 set, skip layer check for collision */
|
||||
/*0x01*/ u8 type;
|
||||
/*0x02*/ u8 interactDirections; /* lower 4 bits determine Link's allowed facing directions to interact, 0 to allow
|
||||
(0000WSEN) */
|
||||
/*0x03*/ u8 kinstoneId;
|
||||
/*0x04*/ const Rect* customHitbox; /* optional custom rectangle */
|
||||
/*0x08*/ Entity* entity;
|
||||
} InteractableObject;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 isUpdated;
|
||||
/*0x01*/ u8 unused;
|
||||
/*0x02*/ u8 kinstoneId;
|
||||
/*0x03*/ u8 currentIndex; /* index of currentObject in candidate list, or 0xFF */
|
||||
/*0x04*/ InteractableObject* currentObject;
|
||||
/*0x08*/ InteractableObject
|
||||
candidates[0x20]; /* contains the loaded NPCs, key doors, windcrests and other objects */
|
||||
} PossibleInteraction;
|
||||
|
||||
static_assert(sizeof(PossibleInteraction) == 0x188);
|
||||
|
||||
extern PossibleInteraction gPossibleInteraction;
|
||||
|
||||
typedef enum {
|
||||
R_ACTION_NONE,
|
||||
R_ACTION_CANCEL,
|
||||
@@ -778,6 +820,8 @@ bool32 HasSwordEquipped();
|
||||
u32 GetPlayerPalette(bool32 use);
|
||||
void PlayerShrinkByRay(void);
|
||||
|
||||
extern void InitPlayerMacro(PlayerMacroEntry*);
|
||||
|
||||
// player.s
|
||||
extern u32 PlayerCheckNEastTile();
|
||||
extern u32* DoTileInteractionHere(Entity*, u32);
|
||||
@@ -786,6 +830,9 @@ extern void sub_08008AC6(Entity*);
|
||||
extern void sub_08008926(Entity*);
|
||||
extern void sub_08008AC6(Entity*);
|
||||
extern void sub_08008AA0(Entity*);
|
||||
extern void sub_080085B0(Entity*);
|
||||
extern u32 sub_080086B4(u32, u32, const u8*);
|
||||
extern u16* DoTileInteraction(struct Entity_*, u32, u32, u32);
|
||||
|
||||
// zelda.c
|
||||
void SetZeldaFollowTarget(Entity* target);
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef PLAYERITEM_H
|
||||
#define PLAYERITEM_H
|
||||
|
||||
#include "global.h"
|
||||
|
||||
typedef enum {
|
||||
PLAYER_ITEM_NONE,
|
||||
PLAYER_ITEM_SWORD,
|
||||
@@ -29,4 +31,6 @@ typedef enum {
|
||||
PLAYER_ITEM_CELL_OVERWRITE_SET2,
|
||||
} PlayerItem;
|
||||
|
||||
extern u32 sub_080040D8(struct Entity_*, u8*, s32, s32);
|
||||
|
||||
#endif // PLAYERITEM_H
|
||||
|
||||
+2
-18
@@ -3,7 +3,7 @@
|
||||
|
||||
#include "entity.h"
|
||||
#include "droptables.h"
|
||||
#include "map.h"
|
||||
#include "transitions.h"
|
||||
|
||||
enum RoomTransition {
|
||||
TRANSITION_DEFAULT,
|
||||
@@ -188,20 +188,6 @@ typedef struct {
|
||||
static_assert(sizeof(RoomTransition) == 0xB0);
|
||||
extern RoomTransition gRoomTransition;
|
||||
|
||||
typedef struct {
|
||||
u16 type;
|
||||
u8 field_0x2[4];
|
||||
s16 playerXPos;
|
||||
s16 playerYPos;
|
||||
u8 field_0xa;
|
||||
u8 area;
|
||||
u8 room;
|
||||
u8 playerLayer;
|
||||
u8 spawn_type;
|
||||
u8 playerState;
|
||||
u16 transitionSFX;
|
||||
} ScreenTransitionData;
|
||||
|
||||
typedef struct {
|
||||
u8 type;
|
||||
u8 localFlag;
|
||||
@@ -246,11 +232,9 @@ Entity* LoadRoomEntity(const EntityData*);
|
||||
void LoadRoomEntityList(const EntityData* listPtr);
|
||||
void* GetRoomProperty(u32 area, u32 room, u32 property);
|
||||
|
||||
bool32 LoadFixedGFX(Entity*, u32);
|
||||
void UnloadGFXSlots(Entity*);
|
||||
void LoadSmallChestTile2(TileEntity*);
|
||||
void sub_0804B0B0(u32 arg0, u32 arg1);
|
||||
|
||||
void DoExitTransition(const ScreenTransitionData* data);
|
||||
void DoExitTransition(const Transition* data);
|
||||
|
||||
#endif // ROOM_H
|
||||
|
||||
+12
-1
@@ -3,11 +3,22 @@
|
||||
|
||||
#include "global.h"
|
||||
#include "player.h"
|
||||
#include "structures.h"
|
||||
#include "room.h"
|
||||
|
||||
#define FILENAME_LENGTH 6
|
||||
|
||||
typedef struct {
|
||||
int signature;
|
||||
u8 saveFileId;
|
||||
u8 msg_speed;
|
||||
u8 brightness;
|
||||
u8 language;
|
||||
u8 name[6];
|
||||
u8 invalid;
|
||||
u8 initialized;
|
||||
} SaveHeader;
|
||||
#define gSaveHeader ((SaveHeader*)(0x2000000))
|
||||
|
||||
typedef enum {
|
||||
SAVE_BUSY = 0,
|
||||
SAVE_OK = 1,
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#define SCREEN_H
|
||||
|
||||
#include "global.h"
|
||||
#include "fade.h"
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u16 displayControl;
|
||||
@@ -76,17 +75,6 @@ typedef struct {
|
||||
// /*0x78*/ u32 _78;
|
||||
} Screen;
|
||||
|
||||
typedef struct {
|
||||
s16 x;
|
||||
s16 y;
|
||||
u16 _4;
|
||||
u16 _6;
|
||||
u16 _8;
|
||||
} OAMCommand;
|
||||
|
||||
extern Screen gScreen;
|
||||
extern OAMCommand gOamCmd;
|
||||
|
||||
extern void sub_080ADA04(OAMCommand*, void*);
|
||||
|
||||
#endif // SCREEN_H
|
||||
|
||||
+32
-32
@@ -1,37 +1,37 @@
|
||||
#ifndef SCREENTRANSITIONS_H
|
||||
#define SCREENTRANSITIONS_H
|
||||
|
||||
#include "room.h"
|
||||
#include "transitions.h"
|
||||
|
||||
extern const ScreenTransitionData* const gWallMasterScreenTransitions[];
|
||||
extern const ScreenTransitionData gUnk_0813AB58;
|
||||
extern const ScreenTransitionData gUnk_0813AB6C;
|
||||
extern const ScreenTransitionData gUnk_0813AB80;
|
||||
extern const ScreenTransitionData gUnk_0813AB94;
|
||||
extern const ScreenTransitionData gUnk_0813ABA8;
|
||||
extern const ScreenTransitionData gUnk_0813ABBC;
|
||||
extern const ScreenTransitionData gUnk_0813ABD0;
|
||||
extern const ScreenTransitionData gUnk_0813ABE4;
|
||||
extern const ScreenTransitionData gUnk_0813ABF8;
|
||||
extern const ScreenTransitionData gUnk_0813AC0C;
|
||||
extern const ScreenTransitionData gUnk_0813AC20;
|
||||
extern const ScreenTransitionData gUnk_0813AC34;
|
||||
extern const ScreenTransitionData gUnk_0813AC48;
|
||||
extern const ScreenTransitionData gUnk_0813AC5C;
|
||||
extern const ScreenTransitionData gUnk_0813AC70;
|
||||
extern const ScreenTransitionData gUnk_0813AC84;
|
||||
extern const ScreenTransitionData gUnk_0813AC98;
|
||||
extern const ScreenTransitionData gUnk_0813ACAC;
|
||||
extern const ScreenTransitionData gUnk_0813ACC0;
|
||||
extern const ScreenTransitionData gUnk_0813ACD4;
|
||||
extern const ScreenTransitionData gUnk_0813ACE8;
|
||||
extern const ScreenTransitionData gUnk_0813ACFC;
|
||||
extern const ScreenTransitionData gUnk_0813AD10; // w
|
||||
extern const ScreenTransitionData gUnk_0813AD24; // m
|
||||
extern const ScreenTransitionData gUnk_0813AD38; // l
|
||||
extern const ScreenTransitionData gUnk_0813AD4C;
|
||||
extern const ScreenTransitionData gUnk_0813AD60;
|
||||
extern const ScreenTransitionData gUnk_0813AD74;
|
||||
extern const ScreenTransitionData gUnk_0813AD88[];
|
||||
extern const ScreenTransitionData gUnk_0813ADEC[];
|
||||
extern const Transition* const gWallMasterScreenTransitions[];
|
||||
extern const Transition gUnk_0813AB58;
|
||||
extern const Transition gUnk_0813AB6C;
|
||||
extern const Transition gUnk_0813AB80;
|
||||
extern const Transition gUnk_0813AB94;
|
||||
extern const Transition gUnk_0813ABA8;
|
||||
extern const Transition gUnk_0813ABBC;
|
||||
extern const Transition gUnk_0813ABD0;
|
||||
extern const Transition gUnk_0813ABE4;
|
||||
extern const Transition gUnk_0813ABF8;
|
||||
extern const Transition gUnk_0813AC0C;
|
||||
extern const Transition gUnk_0813AC20;
|
||||
extern const Transition gUnk_0813AC34;
|
||||
extern const Transition gUnk_0813AC48;
|
||||
extern const Transition gUnk_0813AC5C;
|
||||
extern const Transition gUnk_0813AC70;
|
||||
extern const Transition gUnk_0813AC84;
|
||||
extern const Transition gUnk_0813AC98;
|
||||
extern const Transition gUnk_0813ACAC;
|
||||
extern const Transition gUnk_0813ACC0;
|
||||
extern const Transition gUnk_0813ACD4;
|
||||
extern const Transition gUnk_0813ACE8;
|
||||
extern const Transition gUnk_0813ACFC;
|
||||
extern const Transition gUnk_0813AD10; // w
|
||||
extern const Transition gUnk_0813AD24; // m
|
||||
extern const Transition gUnk_0813AD38; // l
|
||||
extern const Transition gUnk_0813AD4C;
|
||||
extern const Transition gUnk_0813AD60;
|
||||
extern const Transition gUnk_0813AD74;
|
||||
extern const Transition gUnk_0813AD88[];
|
||||
extern const Transition gUnk_0813ADEC[];
|
||||
#endif // SCREENTRANSITIONS_H
|
||||
|
||||
@@ -64,4 +64,7 @@ void ExecuteScriptAndHandleAnimation(Entity* entity, void (*postScriptCallback)(
|
||||
ScriptExecutionContext* CreateScriptExecutionContext(void);
|
||||
void InitScriptForEntity(Entity* entity, ScriptExecutionContext* context, Script* script);
|
||||
|
||||
extern u32 ResolveCollisionLayer(struct Entity_*);
|
||||
extern void UpdateCollisionLayer(struct Entity_*);
|
||||
|
||||
#endif // SCRIPT_H
|
||||
|
||||
@@ -2,8 +2,21 @@
|
||||
#define SCROLL_H
|
||||
|
||||
#include "global.h"
|
||||
#include "transitions.h"
|
||||
|
||||
typedef struct {
|
||||
u16 unk_00;
|
||||
u8 unk_02[0xE];
|
||||
} struct_02034480;
|
||||
extern struct_02034480 gUnk_02034480;
|
||||
|
||||
extern bool32 DoApplicableTransition(u32, u32, u32, u32);
|
||||
extern void DoExitTransitionWithType(const Transition* screenTransition, u32 transitionType);
|
||||
|
||||
void UpdateIsDiggingCave(void);
|
||||
void sub_08080930(u32);
|
||||
|
||||
extern void sub_080809D4(void);
|
||||
extern void sub_08080CB4(struct Entity_*);
|
||||
|
||||
#endif // SCROLL_H
|
||||
|
||||
+1
-373
@@ -2,306 +2,6 @@
|
||||
#define STRUCTURES_H
|
||||
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
|
||||
typedef struct {
|
||||
int signature;
|
||||
u8 saveFileId;
|
||||
u8 msg_speed;
|
||||
u8 brightness;
|
||||
u8 language;
|
||||
u8 name[6];
|
||||
u8 invalid;
|
||||
u8 initialized;
|
||||
} SaveHeader;
|
||||
#define gSaveHeader ((SaveHeader*)(0x2000000))
|
||||
|
||||
typedef struct {
|
||||
u8 unk_00;
|
||||
u8 unk_01;
|
||||
u8 unk_02[0xE];
|
||||
} struct_02000040;
|
||||
|
||||
extern struct_02000040 gUnk_02000040;
|
||||
|
||||
typedef struct {
|
||||
s32 signature;
|
||||
u8 field_0x4;
|
||||
u8 listenForKeyPresses;
|
||||
u8 field_0x6;
|
||||
u8 field_0x7;
|
||||
u8 pad[24];
|
||||
} struct_02000010;
|
||||
static_assert(sizeof(struct_02000010) == 0x20);
|
||||
|
||||
extern struct_02000010 gUnk_02000010;
|
||||
|
||||
typedef struct {
|
||||
u8 unk0;
|
||||
u8 unk1;
|
||||
u16 unk2;
|
||||
} struct_020354C0;
|
||||
extern struct_020354C0 gUnk_020354C0[0x20];
|
||||
|
||||
#define MAX_UI_ELEMENTS 24
|
||||
|
||||
typedef enum {
|
||||
UI_ELEMENT_BUTTON_A,
|
||||
UI_ELEMENT_BUTTON_B,
|
||||
UI_ELEMENT_BUTTON_R,
|
||||
UI_ELEMENT_ITEM_A,
|
||||
UI_ELEMENT_ITEM_B,
|
||||
UI_ELEMENT_TEXT_R,
|
||||
UI_ELEMENT_HEART,
|
||||
UI_ELEMENT_EZLONAGSTART,
|
||||
UI_ELEMENT_EZLONAGACTIVE,
|
||||
UI_ELEMENT_TEXT_A,
|
||||
UI_ELEMENT_TEXT_B
|
||||
} UIElementType;
|
||||
|
||||
/**
|
||||
* @brief Floating UI element
|
||||
*/
|
||||
typedef struct {
|
||||
u8 used : 1;
|
||||
u8 unk_0_1 : 1;
|
||||
u8 unk_0_2 : 2; // Load data into VRAM? 0: do not load, 1: ready to load 2: loaded
|
||||
u8 unk_0_4 : 4;
|
||||
u8 type; /**< @see UIElementType */
|
||||
u8 type2; // Subtype
|
||||
u8 buttonElementId; /**< Id of the button UI element this text is attached to */
|
||||
u8 action;
|
||||
u8 unk_5;
|
||||
u8 unk_6;
|
||||
u8 unk_7;
|
||||
u8 unk_8;
|
||||
u8 unk_9[3];
|
||||
u16 x;
|
||||
u16 y;
|
||||
u8 frameIndex;
|
||||
u8 duration;
|
||||
u8 spriteSettings;
|
||||
u8 frameSettings;
|
||||
Frame* framePtr;
|
||||
u8 unk_18;
|
||||
u8 numTiles;
|
||||
u16 unk_1a; // TODO oam id? VRAM target (element->unk_1a * 0x20 + 0x6010000)
|
||||
u32* firstTile;
|
||||
} UIElement;
|
||||
|
||||
typedef enum {
|
||||
HUD_HIDE_NONE,
|
||||
HUD_HIDE_1 = 0x1, // A
|
||||
HUD_HIDE_2 = 0x2, // B
|
||||
HUD_HIDE_4 = 0x4, // R
|
||||
HUD_HIDE_8 = 0x8,
|
||||
HUD_HIDE_HEARTS = 0x10,
|
||||
HUD_HIDE_CHARGE_BAR = 0x20,
|
||||
HUD_HIDE_RUPEES = 0x40,
|
||||
HUD_HIDE_KEYS = 0x80,
|
||||
|
||||
HUD_HIDE_ALL = 0xff
|
||||
} HUDHideFlags;
|
||||
|
||||
typedef struct {
|
||||
u8 unk_0;
|
||||
u8 hideFlags;
|
||||
u8 unk_2;
|
||||
u8 health;
|
||||
u8 maxHealth;
|
||||
u8 unk_5;
|
||||
u8 unk_6;
|
||||
u8 unk_7;
|
||||
u8 unk_8;
|
||||
u8 unk_9;
|
||||
u8 unk_a;
|
||||
u8 unk_b;
|
||||
u8 unk_c;
|
||||
u8 unk_d;
|
||||
u16 rupees;
|
||||
u8 unk_10; // TODO drawing keys dirty flag or something?
|
||||
u8 unk_11;
|
||||
u8 dungeonKeys;
|
||||
s8 unk_13;
|
||||
s8 unk_14;
|
||||
u8 unk_15;
|
||||
u16 buttonX[3]; /**< X coordinates for the button UI elements */
|
||||
u16 buttonY[3]; /**< Y coordinates for the button UI elements */
|
||||
u8 filler22[0x2];
|
||||
u8 ezloNagFuncIndex;
|
||||
u8 filler25[7];
|
||||
u8 rActionInteractObject; // used as R button UI frame index
|
||||
u8 rActionInteractTile;
|
||||
u8 rActionGrabbing;
|
||||
u8 rActionPlayerState; // if not 0, overrides other R actions
|
||||
u8 buttonText[3];
|
||||
u8 unk_33;
|
||||
UIElement elements[MAX_UI_ELEMENTS];
|
||||
} HUD;
|
||||
extern HUD gHUD;
|
||||
|
||||
#define MAX_GFX_SLOTS 44
|
||||
|
||||
typedef enum {
|
||||
GFX_SLOT_FREE,
|
||||
GFX_SLOT_UNLOADED, // some sort of free? no longer in use?
|
||||
GFX_SLOT_STATUS2, // some sort of free?
|
||||
GFX_SLOT_FOLLOWER, // Set by SetGFXSlotStatus for the following slots
|
||||
GFX_SLOT_RESERVED, // maybe ready to be loaded?
|
||||
GFX_SLOT_GFX,
|
||||
GFX_SLOT_PALETTE
|
||||
} GfxSlotStatus;
|
||||
|
||||
typedef enum {
|
||||
GFX_VRAM_0,
|
||||
GFX_VRAM_1, // uploaded to vram?
|
||||
GFX_VRAM_2,
|
||||
GFX_VRAM_3, // not yet uploaded to vram?
|
||||
} GfxSlotVramStatus;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 status : 4;
|
||||
/*0x00*/ u8 vramStatus : 4; // Whether the gfx was uploaded to the vram?
|
||||
/*0x01*/ u8 slotCount;
|
||||
/*0x02*/ u8 referenceCount; /**< How many entities use this gfx slot */
|
||||
/*0x03*/ u8 unk_3;
|
||||
/*0x04*/ u16 gfxIndex;
|
||||
/*0x06*/ u16 paletteIndex;
|
||||
/*0x08*/ const void* palettePointer;
|
||||
} GfxSlot;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 unk0;
|
||||
/*0x01*/ u8 unk_1;
|
||||
/*0x02*/ u8 unk_2;
|
||||
/*0x03*/ u8 unk_3;
|
||||
/*0x04*/ GfxSlot slots[MAX_GFX_SLOTS];
|
||||
} GfxSlotList;
|
||||
extern GfxSlotList gGFXSlots;
|
||||
|
||||
static_assert(sizeof(GfxSlotList) == 0x214);
|
||||
|
||||
typedef struct {
|
||||
u16 unk_00;
|
||||
u8 unk_02[0xE];
|
||||
} struct_02034480;
|
||||
extern struct_02034480 gUnk_02034480;
|
||||
|
||||
extern u16 gBG0Buffer[0x400];
|
||||
extern u16 gBG1Buffer[0x400];
|
||||
extern u16 gBG2Buffer[0x400];
|
||||
extern u16 gBG3Buffer[0x800];
|
||||
|
||||
typedef enum { ACTIVE_ITEM_0, ACTIVE_ITEM_1, ACTIVE_ITEM_2, ACTIVE_ITEM_LANTERN, MAX_ACTIVE_ITEMS } ActiveItemIndex;
|
||||
/**
|
||||
* Currently active items.
|
||||
* 0: Active items?
|
||||
* 1: Boots, Cape
|
||||
* 2: would be used by CreateItem1 if gActiveItems[1] was already filled
|
||||
* 3: Lamp
|
||||
*/
|
||||
extern ItemBehavior gActiveItems[MAX_ACTIVE_ITEMS];
|
||||
static_assert(sizeof(gActiveItems) == 0x70);
|
||||
|
||||
typedef struct {
|
||||
u8 event_priority; // system requested priority
|
||||
u8 ent_priority; // entity requested priority
|
||||
u8 queued_priority;
|
||||
u8 queued_priority_reset;
|
||||
Entity* requester;
|
||||
u16 priority_timer;
|
||||
} PriorityHandler;
|
||||
extern PriorityHandler gPriorityHandler;
|
||||
|
||||
typedef struct {
|
||||
u8 disabled;
|
||||
u8 screen;
|
||||
u8 unk2[0xf]; // cursor positions on the different screens
|
||||
u8 unk11;
|
||||
u8 unk12;
|
||||
u8 unk13;
|
||||
s8 screen2;
|
||||
u8 unk15;
|
||||
s8 unk16;
|
||||
u8 unk17;
|
||||
} PauseMenuOptions;
|
||||
|
||||
extern PauseMenuOptions gPauseMenuOptions;
|
||||
static_assert(sizeof(PauseMenuOptions) == 0x18);
|
||||
|
||||
typedef struct {
|
||||
u8 unk00 : 1;
|
||||
u8 unk01 : 3;
|
||||
u8 unk04 : 4;
|
||||
u8 unk1;
|
||||
u8 charColor;
|
||||
u8 bgColor;
|
||||
u16 unk4;
|
||||
u16 unk6;
|
||||
void* unk8;
|
||||
} WStruct;
|
||||
|
||||
static_assert(sizeof(WStruct) == 12);
|
||||
|
||||
typedef struct {
|
||||
u8 unk0;
|
||||
u8 unk1;
|
||||
u16 unk2;
|
||||
u8 unk4;
|
||||
u8 unk5;
|
||||
u8 unk6;
|
||||
u8 unk7;
|
||||
} OAMObj;
|
||||
|
||||
typedef struct {
|
||||
u8 field_0x0;
|
||||
u8 field_0x1;
|
||||
u8 spritesOffset;
|
||||
u8 updated;
|
||||
u16 _4;
|
||||
u16 _6;
|
||||
u8 _0[0x18];
|
||||
struct OamData oam[0x80];
|
||||
OAMObj unk[0xA0]; /* todo: affine */
|
||||
} OAMControls;
|
||||
extern OAMControls gOAMControls;
|
||||
|
||||
typedef struct {
|
||||
union SplitWord _0;
|
||||
union SplitWord _4;
|
||||
} struct_020227E8;
|
||||
|
||||
typedef struct {
|
||||
s8 x;
|
||||
s8 y;
|
||||
s8 width;
|
||||
s8 height;
|
||||
} Rect;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 ignoreLayer; /* if bit 0 set, skip layer check for collision */
|
||||
/*0x01*/ u8 type;
|
||||
/*0x02*/ u8 interactDirections; /* lower 4 bits determine Link's allowed facing directions to interact, 0 to allow
|
||||
(0000WSEN) */
|
||||
/*0x03*/ u8 kinstoneId;
|
||||
/*0x04*/ const Rect* customHitbox; /* optional custom rectangle */
|
||||
/*0x08*/ Entity* entity;
|
||||
} InteractableObject;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 isUpdated;
|
||||
/*0x01*/ u8 unused;
|
||||
/*0x02*/ u8 kinstoneId;
|
||||
/*0x03*/ u8 currentIndex; /* index of currentObject in candidate list, or 0xFF */
|
||||
/*0x04*/ InteractableObject* currentObject;
|
||||
/*0x08*/ InteractableObject
|
||||
candidates[0x20]; /* contains the loaded NPCs, key doors, windcrests and other objects */
|
||||
} PossibleInteraction;
|
||||
|
||||
static_assert(sizeof(PossibleInteraction) == 0x188);
|
||||
|
||||
extern PossibleInteraction gPossibleInteraction;
|
||||
|
||||
typedef struct {
|
||||
u8 numTiles;
|
||||
@@ -316,83 +16,11 @@ typedef struct {
|
||||
u32 pad;
|
||||
} SpritePtr;
|
||||
|
||||
extern SpritePtr gSpritePtrs[];
|
||||
|
||||
typedef struct {
|
||||
u16* dest;
|
||||
void* gfx_dest;
|
||||
void* buffer_loc;
|
||||
u32 _c;
|
||||
u16 gfx_src;
|
||||
u8 width;
|
||||
u8 right_align : 1;
|
||||
u8 sm_border : 1;
|
||||
u8 unused : 1;
|
||||
u8 draw_border : 1;
|
||||
u8 border_type : 4;
|
||||
u8 fill_type;
|
||||
u8 charColor;
|
||||
u8 _16;
|
||||
u8 stylized;
|
||||
} Font;
|
||||
|
||||
typedef struct {
|
||||
u8 unk_0;
|
||||
u8 unk_1;
|
||||
u8 unk_2[2];
|
||||
u16 unk_4;
|
||||
u8 filler[12];
|
||||
Entity* unk_14;
|
||||
u8 unk_18;
|
||||
u8 unk_19;
|
||||
u8 unk_1a;
|
||||
u8 unk_1b;
|
||||
} struct_02018EB0;
|
||||
|
||||
extern struct_02018EB0 gUnk_02018EB0;
|
||||
|
||||
typedef struct {
|
||||
s16 tileIndex;
|
||||
s16 tilePosOffset;
|
||||
} TileData;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ bool8 isOnlyActiveFirstFrame; /**< Is the behavior for this item only created on the first frame */
|
||||
/*0x01*/ u8 priority;
|
||||
/*0x02*/ u8 createFunc;
|
||||
/*0x03*/ u8 playerItemId; /**< Id for the corresponsing PlayerItem. */
|
||||
/*0x04*/ u16 frameIndex;
|
||||
/*0x06*/ u8 animPriority;
|
||||
/*0x07*/ bool8 isChangingAttackStatus;
|
||||
/*0x08*/ bool8 isUseableAsMinish;
|
||||
/*0x09*/ u8 pad[3];
|
||||
} ItemDefinition;
|
||||
|
||||
static_assert(sizeof(ItemDefinition) == 0xc);
|
||||
extern const SpritePtr gSpritePtrs[];
|
||||
|
||||
typedef struct {
|
||||
u8 frame;
|
||||
u8 frameIndex;
|
||||
} PACKED FrameStruct;
|
||||
|
||||
typedef struct {
|
||||
/*0x0*/ u8 menuType;
|
||||
/*0x1*/ u16 font;
|
||||
/*0x3*/ u8 unk_3; // TODO padding?
|
||||
/*0x4*/ u16 transitionTimer;
|
||||
/*0x6*/ u16 gfxEntry;
|
||||
/*0x8*/ u16 bg2XOffset;
|
||||
/*0xa*/ u16 sm_unk_14;
|
||||
} PACKED StaffrollEntry;
|
||||
|
||||
static_assert(sizeof(StaffrollEntry) == 0xc);
|
||||
|
||||
typedef struct {
|
||||
u8 paletteGroup;
|
||||
u8 gfxGroup;
|
||||
} PACKED StaffrollGfxEntry;
|
||||
|
||||
extern const u8 gGlobalGfxAndPalettes[];
|
||||
extern u32 gUsedPalettes;
|
||||
|
||||
#endif // STRUCTURES_H
|
||||
|
||||
+4
-1
@@ -95,7 +95,7 @@ u32 sub_080A6F40();
|
||||
s32 sub_080A69E0();
|
||||
const OverworldLocation* GetOverworldLocation(u32 x, u32 y);
|
||||
void sub_080A6498(void);
|
||||
void sub_080A71F4(const ScreenTransitionData* exitTransition);
|
||||
void sub_080A71F4(const Transition* exitTransition);
|
||||
void sub_080A6F6C(u32 textIndexOrPtr);
|
||||
|
||||
typedef struct {
|
||||
@@ -117,4 +117,7 @@ extern const struct_gUnk_08128E94 gUnk_08128E94[];
|
||||
#define DRAW_DIRECT_SPRITE_INDEX 0x1fb
|
||||
#endif
|
||||
|
||||
extern void MenuFadeIn(u32, u32);
|
||||
extern void sub_080A71C4(u32, u32, u32, u32);
|
||||
|
||||
#endif // SUBTASK_H
|
||||
|
||||
+26
-6
@@ -7,7 +7,9 @@
|
||||
typedef enum {
|
||||
WARP_TYPE_BORDER,
|
||||
WARP_TYPE_AREA,
|
||||
WARP_TYPE_END_OF_LIST = -1,
|
||||
WARP_TYPE_BORDER2,
|
||||
WARP_TYPE_AREA2,
|
||||
WARP_TYPE_END_OF_LIST = 0xffff,
|
||||
} WarpType;
|
||||
|
||||
typedef enum {
|
||||
@@ -26,9 +28,28 @@ typedef enum {
|
||||
TRANSITION_TYPE_FLY_IN,
|
||||
} TransitionType;
|
||||
|
||||
typedef enum {
|
||||
TRANSITION_SHAPE_AREA_12x12,
|
||||
TRANSITION_SHAPE_AREA_12x28,
|
||||
TRANSITION_SHAPE_AREA_28x12,
|
||||
TRANSITION_SHAPE_AREA_44x12,
|
||||
|
||||
TRANSITION_SHAPE_BORDER_NORTH_WEST = 0x01,
|
||||
TRANSITION_SHAPE_BORDER_NORTH_EAST = 0x02,
|
||||
TRANSITION_SHAPE_BORDER_NORTH = 0x03,
|
||||
TRANSITION_SHAPE_BORDER_EAST_NORTH = 0x04,
|
||||
TRANSITION_SHAPE_BORDER_EAST_SOUTH = 0x08,
|
||||
TRANSITION_SHAPE_BORDER_EAST = 0x0c,
|
||||
TRANSITION_SHAPE_BORDER_SOUTH_WEST = 0x10,
|
||||
TRANSITION_SHAPE_BORDER_SOUTH_EAST = 0x20,
|
||||
TRANSITION_SHAPE_BORDER_SOUTH = 0x30,
|
||||
TRANSITION_SHAPE_BORDER_WEST_NORTH = 0x40,
|
||||
TRANSITION_SHAPE_BORDER_WEST_SOUTH = 0x80,
|
||||
TRANSITION_SHAPE_BORDER_WEST = 0xc0,
|
||||
} TransitionShape;
|
||||
|
||||
typedef struct Transition {
|
||||
WarpType warp_type : 8;
|
||||
u8 subtype;
|
||||
u16 warp_type; /**< @see WarpType */
|
||||
u16 startX;
|
||||
u16 startY;
|
||||
u16 endX;
|
||||
@@ -36,11 +57,10 @@ typedef struct Transition {
|
||||
u8 shape;
|
||||
u8 area;
|
||||
RoomID room : 8;
|
||||
u8 height;
|
||||
u8 layer;
|
||||
TransitionType transition_type : 8;
|
||||
u8 facing_direction; // 0-4
|
||||
u8 unk0;
|
||||
u8 unk1;
|
||||
u16 transitionSFX;
|
||||
u8 unk2;
|
||||
u8 unk3;
|
||||
} Transition;
|
||||
|
||||
@@ -2,8 +2,107 @@
|
||||
#define UI_H
|
||||
|
||||
#include "global.h"
|
||||
#include "sprite.h"
|
||||
|
||||
#define MAX_UI_ELEMENTS 24
|
||||
|
||||
typedef enum {
|
||||
UI_ELEMENT_BUTTON_A,
|
||||
UI_ELEMENT_BUTTON_B,
|
||||
UI_ELEMENT_BUTTON_R,
|
||||
UI_ELEMENT_ITEM_A,
|
||||
UI_ELEMENT_ITEM_B,
|
||||
UI_ELEMENT_TEXT_R,
|
||||
UI_ELEMENT_HEART,
|
||||
UI_ELEMENT_EZLONAGSTART,
|
||||
UI_ELEMENT_EZLONAGACTIVE,
|
||||
UI_ELEMENT_TEXT_A,
|
||||
UI_ELEMENT_TEXT_B
|
||||
} UIElementType;
|
||||
|
||||
/**
|
||||
* @brief Floating UI element
|
||||
*/
|
||||
typedef struct {
|
||||
u8 used : 1;
|
||||
u8 unk_0_1 : 1;
|
||||
u8 unk_0_2 : 2; // Load data into VRAM? 0: do not load, 1: ready to load 2: loaded
|
||||
u8 unk_0_4 : 4;
|
||||
u8 type; /**< @see UIElementType */
|
||||
u8 type2; // Subtype
|
||||
u8 buttonElementId; /**< Id of the button UI element this text is attached to */
|
||||
u8 action;
|
||||
u8 unk_5;
|
||||
u8 unk_6;
|
||||
u8 unk_7;
|
||||
u8 unk_8;
|
||||
u8 unk_9[3];
|
||||
u16 x;
|
||||
u16 y;
|
||||
u8 frameIndex;
|
||||
u8 duration;
|
||||
u8 spriteSettings;
|
||||
u8 frameSettings;
|
||||
Frame* framePtr;
|
||||
u8 unk_18;
|
||||
u8 numTiles;
|
||||
u16 unk_1a; // TODO oam id? VRAM target (element->unk_1a * 0x20 + 0x6010000)
|
||||
u32* firstTile;
|
||||
} UIElement;
|
||||
|
||||
typedef enum {
|
||||
HUD_HIDE_NONE,
|
||||
HUD_HIDE_1 = 0x1, // A
|
||||
HUD_HIDE_2 = 0x2, // B
|
||||
HUD_HIDE_4 = 0x4, // R
|
||||
HUD_HIDE_8 = 0x8,
|
||||
HUD_HIDE_HEARTS = 0x10,
|
||||
HUD_HIDE_CHARGE_BAR = 0x20,
|
||||
HUD_HIDE_RUPEES = 0x40,
|
||||
HUD_HIDE_KEYS = 0x80,
|
||||
|
||||
HUD_HIDE_ALL = 0xff
|
||||
} HUDHideFlags;
|
||||
|
||||
typedef struct {
|
||||
u8 unk_0;
|
||||
u8 hideFlags;
|
||||
u8 unk_2;
|
||||
u8 health;
|
||||
u8 maxHealth;
|
||||
u8 unk_5;
|
||||
u8 unk_6;
|
||||
u8 unk_7;
|
||||
u8 unk_8;
|
||||
u8 unk_9;
|
||||
u8 unk_a;
|
||||
u8 unk_b;
|
||||
u8 unk_c;
|
||||
u8 unk_d;
|
||||
u16 rupees;
|
||||
u8 unk_10; // TODO drawing keys dirty flag or something?
|
||||
u8 unk_11;
|
||||
u8 dungeonKeys;
|
||||
s8 unk_13;
|
||||
s8 unk_14;
|
||||
u8 unk_15;
|
||||
u16 buttonX[3]; /**< X coordinates for the button UI elements */
|
||||
u16 buttonY[3]; /**< Y coordinates for the button UI elements */
|
||||
u8 filler22[0x2];
|
||||
u8 ezloNagFuncIndex;
|
||||
u8 filler25[7];
|
||||
u8 rActionInteractObject; // used as R button UI frame index
|
||||
u8 rActionInteractTile;
|
||||
u8 rActionGrabbing;
|
||||
u8 rActionPlayerState; // if not 0, overrides other R actions
|
||||
u8 buttonText[3];
|
||||
u8 unk_33;
|
||||
UIElement elements[MAX_UI_ELEMENTS];
|
||||
} HUD;
|
||||
extern HUD gHUD;
|
||||
|
||||
extern void DrawUIElements(void);
|
||||
extern void UpdateUIElements(void);
|
||||
extern void CreateUIElement(u32, u32);
|
||||
extern void sub_0801C2F0(u32, u32);
|
||||
extern void sub_0801C25C(void);
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
#ifndef VRAM_H
|
||||
#define VRAM_H
|
||||
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
|
||||
#define MAX_GFX_SLOTS 44
|
||||
|
||||
typedef enum {
|
||||
GFX_SLOT_FREE,
|
||||
GFX_SLOT_UNLOADED, // some sort of free? no longer in use?
|
||||
GFX_SLOT_STATUS2, // some sort of free?
|
||||
GFX_SLOT_FOLLOWER, // Set by SetGFXSlotStatus for the following slots
|
||||
GFX_SLOT_RESERVED, // maybe ready to be loaded?
|
||||
GFX_SLOT_GFX,
|
||||
GFX_SLOT_PALETTE
|
||||
} GfxSlotStatus;
|
||||
|
||||
typedef enum {
|
||||
GFX_VRAM_0,
|
||||
GFX_VRAM_1, // uploaded to vram?
|
||||
GFX_VRAM_2,
|
||||
GFX_VRAM_3, // not yet uploaded to vram?
|
||||
} GfxSlotVramStatus;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 status : 4;
|
||||
/*0x00*/ u8 vramStatus : 4; // Whether the gfx was uploaded to the vram?
|
||||
/*0x01*/ u8 slotCount;
|
||||
/*0x02*/ u8 referenceCount; /**< How many entities use this gfx slot */
|
||||
/*0x03*/ u8 unk_3;
|
||||
/*0x04*/ u16 gfxIndex;
|
||||
/*0x06*/ u16 paletteIndex;
|
||||
/*0x08*/ const void* palettePointer;
|
||||
} GfxSlot;
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ u8 unk0;
|
||||
/*0x01*/ u8 unk_1;
|
||||
/*0x02*/ u8 unk_2;
|
||||
/*0x03*/ u8 unk_3;
|
||||
/*0x04*/ GfxSlot slots[MAX_GFX_SLOTS];
|
||||
} GfxSlotList;
|
||||
extern GfxSlotList gGFXSlots;
|
||||
|
||||
static_assert(sizeof(GfxSlotList) == 0x214);
|
||||
|
||||
extern bool32 LoadFixedGFX(Entity*, u32);
|
||||
extern bool32 LoadSwapGFX(Entity*, u32, u32);
|
||||
extern void UnloadGFXSlots(Entity*);
|
||||
extern void sub_080ADD70(void);
|
||||
|
||||
extern u16 gBG0Buffer[0x400];
|
||||
extern u16 gBG1Buffer[0x400];
|
||||
extern u16 gBG2Buffer[0x400];
|
||||
extern u16 gBG3Buffer[0x800];
|
||||
|
||||
typedef struct {
|
||||
u8 unk0;
|
||||
u8 unk1;
|
||||
u16 unk2;
|
||||
u8 unk4;
|
||||
u8 unk5;
|
||||
u8 unk6;
|
||||
u8 unk7;
|
||||
} OAMObj;
|
||||
|
||||
typedef struct {
|
||||
u8 field_0x0;
|
||||
u8 field_0x1;
|
||||
u8 spritesOffset;
|
||||
u8 updated;
|
||||
u16 _4;
|
||||
u16 _6;
|
||||
u8 _0[0x18];
|
||||
struct OamData oam[0x80];
|
||||
OAMObj unk[0xA0]; /* todo: affine */
|
||||
} OAMControls;
|
||||
extern OAMControls gOAMControls;
|
||||
|
||||
#endif // VRAM_H
|
||||
@@ -1145,6 +1145,7 @@ SECTIONS {
|
||||
src/manager/templeOfDropletsManager.o(.rodata);
|
||||
src/manager/fallingItemManager.o(.rodata);
|
||||
src/manager/cloudOverlayManager.o(.rodata);
|
||||
src/manager/holeManager.o(.rodata);
|
||||
data/const/manager/holeManager.o(.rodata);
|
||||
src/manager/staticBackgroundManager.o(.rodata);
|
||||
src/manager/rainfallManager.o(.rodata);
|
||||
|
||||
+1
-2
@@ -1,8 +1,7 @@
|
||||
#include "affine.h"
|
||||
#include "global.h"
|
||||
#include "structures.h"
|
||||
#include "main.h"
|
||||
#include "room.h"
|
||||
#include "screen.h"
|
||||
|
||||
extern u32 gFrameObjLists[];
|
||||
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
#include "asm.h"
|
||||
#include "assets/gfx_offsets.h"
|
||||
#include "common.h"
|
||||
#include "functions.h"
|
||||
#include "gfx.h"
|
||||
#include "fade.h"
|
||||
|
||||
void LoadBgAnimationGfx(const BgAnimationGfx*);
|
||||
u32 GetBgAnimationTimer(const s32*);
|
||||
|
||||
+13
-7
@@ -4,7 +4,6 @@
|
||||
#include "collision.h"
|
||||
#include "common.h"
|
||||
#include "fade.h"
|
||||
#include "functions.h"
|
||||
#include "game.h"
|
||||
#include "item.h"
|
||||
#include "main.h"
|
||||
@@ -12,10 +11,16 @@
|
||||
#include "manager/diggingCaveEntranceManager.h"
|
||||
#include "menu.h"
|
||||
#include "object.h"
|
||||
#include "asm.h"
|
||||
#include "flags.h"
|
||||
#include "room.h"
|
||||
#include "player.h"
|
||||
#include "screen.h"
|
||||
#include "scroll.h"
|
||||
#include "structures.h"
|
||||
#include "tiles.h"
|
||||
#include "affine.h"
|
||||
#include "subtask.h"
|
||||
#include "ui.h"
|
||||
|
||||
extern void sub_0807C898(void);
|
||||
extern void sub_0805BB74(s32);
|
||||
@@ -63,7 +68,7 @@ extern void sub_0804B388(u32 a1, u32 a2);
|
||||
extern u32 sub_080A7CFC(u32 a1, u32 tmp); // TODO does this really have a second param?
|
||||
extern void OpenSmallChest(u32 pos, u32 layer);
|
||||
extern bool32 sub_08079778();
|
||||
extern Transition* sub_08080734(u32, u32);
|
||||
extern Transition* FindApplicableAreaTransition(u32, u32);
|
||||
|
||||
extern const s16 gUnk_080B4490[];
|
||||
extern const s16 gUnk_080B4468[];
|
||||
@@ -206,8 +211,8 @@ u32 UpdatePlayerCollision(void) {
|
||||
gPlayerEntity.base.collisionLayer) == COLLISION_DATA_255) {
|
||||
if ((((gPlayerState.flags & (PL_FLAGS10000 | PL_FLAGS2)) != 0) ||
|
||||
((gPlayerState.sword_state & 0x10) != 0)) ||
|
||||
((sub_080806BC(gPlayerEntity.base.x.HALF.HI - gRoomControls.origin_x,
|
||||
gPlayerEntity.base.y.HALF.HI - gRoomControls.origin_y, index, 5) == 0 &&
|
||||
((DoApplicableTransition(gPlayerEntity.base.x.HALF.HI - gRoomControls.origin_x,
|
||||
gPlayerEntity.base.y.HALF.HI - gRoomControls.origin_y, index, 5) == 0 &&
|
||||
(((gPlayerState.heldObject != 0 || ((gPlayerState.gustJarState & 0xf) != 0)) ||
|
||||
(sub_0807BD14(&gPlayerEntity.base, index) == 0)))))) {
|
||||
return 3;
|
||||
@@ -269,8 +274,9 @@ u32 UpdatePlayerCollision(void) {
|
||||
}
|
||||
|
||||
ptr1 = &gUnk_080B4478[gPlayerEntity.base.animationState & 6];
|
||||
transition = sub_08080734((gPlayerEntity.base.x.HALF.HI - gRoomControls.origin_x) + ptr1[0],
|
||||
(gPlayerEntity.base.y.HALF.HI - gRoomControls.origin_y) + ptr1[1]);
|
||||
transition =
|
||||
FindApplicableAreaTransition((gPlayerEntity.base.x.HALF.HI - gRoomControls.origin_x) + ptr1[0],
|
||||
(gPlayerEntity.base.y.HALF.HI - gRoomControls.origin_y) + ptr1[1]);
|
||||
if (transition == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "global.h"
|
||||
#include "room.h"
|
||||
#include "enemy.h"
|
||||
#include "common.h"
|
||||
|
||||
extern void MemFill32(u32, void*, u32);
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
#include "asm.h"
|
||||
#include "global.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
|
||||
#include "map.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
#include "entity.h"
|
||||
#include "player.h"
|
||||
#include "room.h"
|
||||
#include "structures.h"
|
||||
#include "vram.h"
|
||||
|
||||
const u8 gUnk_08109202[] = {
|
||||
255, 8, 24, 255, 0, 4, 28, 255, 16, 12, 20, 255, 255, 255, 255, 255, 0, 0,
|
||||
|
||||
+3
-2
@@ -2,12 +2,13 @@
|
||||
#include "collision.h"
|
||||
#include "common.h"
|
||||
#include "enemy.h"
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
#include "game.h"
|
||||
#include "global.h"
|
||||
#include "item.h"
|
||||
#include "object.h"
|
||||
#include "physics.h"
|
||||
#include "player.h"
|
||||
#include "save.h"
|
||||
#include "tiles.h"
|
||||
|
||||
+8
-9
@@ -3,14 +3,13 @@
|
||||
#include "common.h"
|
||||
#include "color.h"
|
||||
#include "room.h"
|
||||
#include "global.h"
|
||||
#include "fileselect.h"
|
||||
#include "main.h"
|
||||
#include "physics.h"
|
||||
#include "gfx.h"
|
||||
#include "fade.h"
|
||||
|
||||
extern Palette gUnk_02001A3C;
|
||||
|
||||
void LoadObjPaletteAtIndex(u32 a1, u32 a2);
|
||||
void LoadObjPaletteAtIndex(u32 a1, u32 paletteIndex);
|
||||
void CleanUpObjPalettes();
|
||||
u32 FindFreeObjPalette(u32);
|
||||
void SetEntityObjPalette(Entity*, s32);
|
||||
@@ -237,21 +236,21 @@ void ChangeObjPalette(Entity* entity, u32 objPaletteId) {
|
||||
LoadObjPalette(entity, objPaletteId);
|
||||
}
|
||||
|
||||
void LoadObjPaletteAtIndex(u32 objPaletteId, u32 a2) {
|
||||
void LoadObjPaletteAtIndex(u32 objPaletteId, u32 paletteIndex) {
|
||||
u16* buffer;
|
||||
|
||||
gUsedPalettes |= 1 << (a2 + 16);
|
||||
USE_PALETTE(paletteIndex + 16);
|
||||
if (objPaletteId > 5) {
|
||||
if (objPaletteId == 0x15) {
|
||||
buffer = gPaletteBuffer;
|
||||
MemFill16(buffer[0x3C], buffer + (a2 + 16) * 16, 0x20);
|
||||
MemFill16(buffer[0x3C], buffer + (paletteIndex + 16) * 16, 0x20);
|
||||
} else if (objPaletteId < 0x15) {
|
||||
LoadPalettes((u8*)(gPaletteBuffer + (objPaletteId - 6) * 16), a2 + 16, 1);
|
||||
LoadPalettes((u8*)(gPaletteBuffer + (objPaletteId - 6) * 16), paletteIndex + 16, 1);
|
||||
} else {
|
||||
u32 offset = gUnk_08133368[(objPaletteId - 0x16)].WORD_U;
|
||||
u32 numPalettes = (offset >> 0x18) & 0xf;
|
||||
offset &= 0xffffff;
|
||||
LoadPalettes(gGlobalGfxAndPalettes + offset, a2 + 16, numPalettes);
|
||||
LoadPalettes(&gGlobalGfxAndPalettes[offset], paletteIndex + 16, numPalettes);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+25
-21
@@ -1,10 +1,11 @@
|
||||
#include "common.h"
|
||||
|
||||
#include "assets/map_offsets.h"
|
||||
#include "assets/gfx_offsets.h"
|
||||
#include "area.h"
|
||||
#include "asm.h"
|
||||
#include "flags.h"
|
||||
#include "functions.h"
|
||||
#include "physics.h"
|
||||
#include "game.h"
|
||||
#include "global.h"
|
||||
#include "item.h"
|
||||
@@ -15,7 +16,8 @@
|
||||
#include "save.h"
|
||||
#include "screen.h"
|
||||
#include "sound.h"
|
||||
#include "structures.h"
|
||||
#include "subtask.h"
|
||||
#include "fade.h"
|
||||
|
||||
extern u8 gUnk_03003DE0;
|
||||
extern u8 gzHeap[0x1000];
|
||||
@@ -97,9 +99,7 @@ typedef struct {
|
||||
u8 y;
|
||||
} PACKED DungeonMapObject;
|
||||
|
||||
// More like PrepareTileEntitesForDungeonMap or so
|
||||
|
||||
u32 DecToHex(u32 value) {
|
||||
u32 EncodeBCD(u32 value) {
|
||||
u32 result;
|
||||
FORCE_REGISTER(u32 r1, r1);
|
||||
|
||||
@@ -244,7 +244,7 @@ void LoadPalettes(const u8* src, s32 destPaletteNum, s32 numPalettes) {
|
||||
u32 size = numPalettes * 32;
|
||||
u32 usedPalettesMask = 1 << destPaletteNum;
|
||||
while (--numPalettes > 0) {
|
||||
usedPalettesMask |= (usedPalettesMask << 1);
|
||||
usedPalettesMask |= usedPalettesMask << 1;
|
||||
}
|
||||
gUsedPalettes |= usedPalettesMask;
|
||||
dest = &gPaletteBuffer[destPaletteNum * 16];
|
||||
@@ -253,7 +253,7 @@ void LoadPalettes(const u8* src, s32 destPaletteNum, s32 numPalettes) {
|
||||
|
||||
void SetColor(u32 colorIndex, u32 color) {
|
||||
gPaletteBuffer[colorIndex] = color;
|
||||
gUsedPalettes |= 1 << (colorIndex / 16);
|
||||
USE_PALETTE(colorIndex / 16);
|
||||
}
|
||||
|
||||
void SetFillColor(u32 color, u32 disable_layers) {
|
||||
@@ -596,7 +596,7 @@ void sub_0801DD58(u32 area, u32 room) {
|
||||
}
|
||||
|
||||
void LoadDungeonMap(void) {
|
||||
LoadResourceAsync(gDungeonMap, 0x6006000, sizeof(gDungeonMap));
|
||||
LoadResourceAsync(gDungeonMap, BG_SCREEN_ADDR(12), sizeof(gDungeonMap));
|
||||
}
|
||||
|
||||
void DrawDungeonFeatures(u32 floor, void* data, u32 size) {
|
||||
@@ -1923,19 +1923,23 @@ const KinstoneWorldEvent gKinstoneWorldEvents[] = {
|
||||
#endif
|
||||
|
||||
// For sub_080A4418
|
||||
// TODO these are gGlobalGfxAndPalettes offsets with the size of 0x80
|
||||
#ifdef EU
|
||||
const u32 gUnk_080CA06C[] = { 139744, 139744, 140256, 140768, 141280, 141792, 142304, 142816, 143840, 144864, 145888,
|
||||
146912, 147936, 148960, 149984, 151008, 152032, 153056, 154080, 155104, 156128, 157152,
|
||||
158176, 159200, 160224, 161248, 143328, 144352, 145376, 146400, 147424, 148448, 149472,
|
||||
150496, 151520, 152544, 153568, 154592, 155616, 156640, 157664, 158688, 159712, 160736 };
|
||||
#else
|
||||
const u32 gUnk_080CA06C[] = { 139808, 139808, 140320, 140832, 141344, 141856, 142368, 142880, 143904, 144928, 145952,
|
||||
146976, 148000, 149024, 150048, 151072, 152096, 153120, 154144, 155168, 156192, 157216,
|
||||
158240, 159264, 160288, 161312, 143392, 144416, 145440, 146464, 147488, 148512, 149536,
|
||||
150560, 151584, 152608, 153632, 154656, 155680, 156704, 157728, 158752, 159776, 160800 };
|
||||
#endif
|
||||
|
||||
const u32 gUnk_080CA06C[] = {
|
||||
offset_gUnk_data3_085C4FE0 + 0xC0, offset_gUnk_data3_085C4FE0 + 0xC0, offset_gUnk_data3_085C4FE0 + 0x2C0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x4C0, offset_gUnk_data3_085C4FE0 + 0x6C0, offset_gUnk_data3_085C4FE0 + 0x8C0,
|
||||
offset_gUnk_data3_085C4FE0 + 0xAC0, offset_gUnk_data3_085C4FE0 + 0xCC0, offset_gUnk_data3_085C4FE0 + 0x10C0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x14C0, offset_gUnk_data3_085C4FE0 + 0x18C0, offset_gUnk_data3_085C4FE0 + 0x1CC0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x20C0, offset_gUnk_data3_085C4FE0 + 0x24C0, offset_gUnk_data3_085C4FE0 + 0x28C0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x2CC0, offset_gUnk_data3_085C4FE0 + 0x30C0, offset_gUnk_data3_085C4FE0 + 0x34C0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x38C0, offset_gUnk_data3_085C4FE0 + 0x3CC0, offset_gUnk_data3_085C4FE0 + 0x40C0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x44C0, offset_gUnk_data3_085C4FE0 + 0x48C0, offset_gUnk_data3_085C4FE0 + 0x4CC0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x50C0, offset_gUnk_data3_085C4FE0 + 0x54C0, offset_gUnk_data3_085C4FE0 + 0xEC0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x12C0, offset_gUnk_data3_085C4FE0 + 0x16C0, offset_gUnk_data3_085C4FE0 + 0x1AC0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x1EC0, offset_gUnk_data3_085C4FE0 + 0x22C0, offset_gUnk_data3_085C4FE0 + 0x26C0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x2AC0, offset_gUnk_data3_085C4FE0 + 0x2EC0, offset_gUnk_data3_085C4FE0 + 0x32C0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x36C0, offset_gUnk_data3_085C4FE0 + 0x3AC0, offset_gUnk_data3_085C4FE0 + 0x3EC0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x42C0, offset_gUnk_data3_085C4FE0 + 0x46C0, offset_gUnk_data3_085C4FE0 + 0x4AC0,
|
||||
offset_gUnk_data3_085C4FE0 + 0x4EC0, offset_gUnk_data3_085C4FE0 + 0x52C0,
|
||||
};
|
||||
const u8 SharedFusions[] = {
|
||||
0x18, 0x2D, 0x35, 0x36, 0x37, 0x39, 0x3C, 0x44, 0x46, 0x47, 0x4E, 0x50, 0x53, 0x55, 0x56, 0x58, 0x5F, 0x60, 0, 0,
|
||||
};
|
||||
|
||||
+8
-1
@@ -6,16 +6,23 @@
|
||||
#include "cutscene.h"
|
||||
|
||||
#include "enemy.h"
|
||||
#include "sound.h"
|
||||
#include "flags.h"
|
||||
#include "common.h"
|
||||
#include "fade.h"
|
||||
#include "fileselect.h"
|
||||
#include "functions.h"
|
||||
#include "game.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "npc.h"
|
||||
#include "object.h"
|
||||
#include "room.h"
|
||||
#include "screen.h"
|
||||
#include "subtask.h"
|
||||
#include "beanstalkSubtask.h"
|
||||
#include "tiles.h"
|
||||
#include "backgroundAnimations.h"
|
||||
#include "manager/staticBackgroundManager.h"
|
||||
|
||||
void sub_08051F78(void);
|
||||
void sub_08051FF0(void);
|
||||
|
||||
@@ -4,72 +4,72 @@
|
||||
|
||||
// clang-format off
|
||||
|
||||
const ScreenTransitionData gUnk_0813AA54 = { 1, { 0, 0, 0, 0 }, 0x98, 0xa8, 0, AREA_CAVE_OF_FLAMES, ROOM_CAVE_OF_FLAMES_MAIN_CART, 1, 2, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AA68 = { 1, { 0, 0, 0, 0 }, 0xa8, 0xb8, 0, AREA_DEEPWOOD_SHRINE, ROOM_DEEPWOOD_SHRINE_ENTRANCE, 1, 2, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AA7C = { 1, { 0, 0, 0, 0 }, 0x98, 0xa8, 0, AREA_CAVE_OF_FLAMES, ROOM_CAVE_OF_FLAMES_MAIN_CART, 1, 2, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AA90 = { 1, { 0, 0, 0, 0 }, 0x78, 0xa8, 0, AREA_FORTRESS_OF_WINDS, ROOM_FORTRESS_OF_WINDS_CENTER_STAIRS_1F, 1, 2, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AAA4 = { 1, { 0, 0, 0, 0 }, 0x108, 0xf8, 0, AREA_TEMPLE_OF_DROPLETS, ROOM_TEMPLE_OF_DROPLETS_ENTRANCE, 1, 2, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AAB8 = { 1, { 0, 0, 0, 0 }, 0x238, 0x58, 0, AREA_PALACE_OF_WINDS, ROOM_PALACE_OF_WINDS_ENTRANCE_ROOM, 1, 2, 6, 0 };
|
||||
const ScreenTransitionData gUnk_0813AACC = { 1, { 0, 0, 0, 0 }, 0x198, 0x1d8, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_1F_ENTRANCE, 1, 2, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AAE0 = { 1, { 0, 0, 0, 0 }, 0x88, 0x78, 0, AREA_ROYAL_CRYPT, ROOM_ROYAL_CRYPT_ENTRANCE, 1, 2, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AB08 = { 1, { 0, 0, 0, 0 }, 0x98, 0xa8, 0, AREA_CAVE_OF_FLAMES, ROOM_CAVE_OF_FLAMES_MAIN_CART, 1, 2, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AAF4 = { 1, { 0, 0, 0, 0 }, 0x98, 0xa8, 0, AREA_CAVE_OF_FLAMES, ROOM_CAVE_OF_FLAMES_MAIN_CART, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AA54 = { WARP_TYPE_AREA, 0, 0, 0x98, 0xa8, 0, AREA_CAVE_OF_FLAMES, ROOM_CAVE_OF_FLAMES_MAIN_CART, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AA68 = { WARP_TYPE_AREA, 0, 0, 0xa8, 0xb8, 0, AREA_DEEPWOOD_SHRINE, ROOM_DEEPWOOD_SHRINE_ENTRANCE, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AA7C = { WARP_TYPE_AREA, 0, 0, 0x98, 0xa8, 0, AREA_CAVE_OF_FLAMES, ROOM_CAVE_OF_FLAMES_MAIN_CART, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AA90 = { WARP_TYPE_AREA, 0, 0, 0x78, 0xa8, 0, AREA_FORTRESS_OF_WINDS, ROOM_FORTRESS_OF_WINDS_CENTER_STAIRS_1F, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AAA4 = { WARP_TYPE_AREA, 0, 0, 0x108, 0xf8, 0, AREA_TEMPLE_OF_DROPLETS, ROOM_TEMPLE_OF_DROPLETS_ENTRANCE, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AAB8 = { WARP_TYPE_AREA, 0, 0, 0x238, 0x58, 0, AREA_PALACE_OF_WINDS, ROOM_PALACE_OF_WINDS_ENTRANCE_ROOM, 1, 2, 6, 0 };
|
||||
const Transition gUnk_0813AACC = { WARP_TYPE_AREA, 0, 0, 0x198, 0x1d8, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_1F_ENTRANCE, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AAE0 = { WARP_TYPE_AREA, 0, 0, 0x88, 0x78, 0, AREA_ROYAL_CRYPT, ROOM_ROYAL_CRYPT_ENTRANCE, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AB08 = { WARP_TYPE_AREA, 0, 0, 0x98, 0xa8, 0, AREA_CAVE_OF_FLAMES, ROOM_CAVE_OF_FLAMES_MAIN_CART, 1, 2, 0, 0 };
|
||||
const Transition gUnk_0813AAF4 = { WARP_TYPE_AREA, 0, 0, 0x98, 0xa8, 0, AREA_CAVE_OF_FLAMES, ROOM_CAVE_OF_FLAMES_MAIN_CART, 1, 2, 0, 0 };
|
||||
|
||||
const ScreenTransitionData* const gWallMasterScreenTransitions[] = {
|
||||
const Transition* const gWallMasterScreenTransitions[] = {
|
||||
&gUnk_0813AA54, &gUnk_0813AA68, &gUnk_0813AA7C, &gUnk_0813AA90, &gUnk_0813AAA4,
|
||||
&gUnk_0813AAB8, &gUnk_0813AACC, &gUnk_0813AAE0, &gUnk_0813AB08, &gUnk_0813AAF4,
|
||||
};
|
||||
|
||||
const ScreenTransitionData unusedScreenTransition = { 1, { 0, 0, 0, 0 }, 0x48, 0x68, 0, AREA_CASTLE_GARDEN, ROOM_CASTLE_GARDEN_MAIN, 1, 0, 2, 0 };
|
||||
const Transition unusedScreenTransition = { WARP_TYPE_AREA, 0, 0, 0x48, 0x68, 0, AREA_CASTLE_GARDEN, ROOM_CASTLE_GARDEN_MAIN, 1, 0, 2, 0 };
|
||||
|
||||
const ScreenTransitionData gUnk_0813AB58 = { 1, { 0, 0, 0, 0 }, 0x108, 0xc8, 0, AREA_TEMPLE_OF_DROPLETS, ROOM_TEMPLE_OF_DROPLETS_ENTRANCE, 2, 2, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AB6C = { 1, { 0, 0, 0, 0 }, 0x198, 0x68, 0, AREA_RUINS, ROOM_RUINS_FORTRESS_ENTRANCE, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AB80 = { 1, { 0, 0, 0, 0 }, 0xc8, 0x48, 0, AREA_HYRULE_CASTLE, ROOM_HYRULE_CASTLE_4, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AB94 = { 1, { 0, 0, 0, 0 }, 0xb8, 0x5c, 0, AREA_FORTRESS_OF_WINDS, ROOM_FORTRESS_OF_WINDS_MAZAAL, 1, 1, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813ABA8 = { 1, { 0, 0, 0, 0 }, 0xb8, 0x78, 0, AREA_FORTRESS_OF_WINDS, ROOM_FORTRESS_OF_WINDS_MAZAAL, 1, 0, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813ABBC = { 1, { 0, 0, 0, 0 }, 0xf0, 0xbc, 0, AREA_ROYAL_VALLEY, ROOM_ROYAL_VALLEY_MAIN, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813ABD0 = { 1, { 0, 0, 0, 0 }, 0x1d8, 0xd8, 0, AREA_PALACE_OF_WINDS, ROOM_PALACE_OF_WINDS_GYORG_TORNADO, 2, 2, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813ABE4 = { 1, { 0, 0, 0, 0 }, 0x198, 0x168, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_1F_ENTRANCE, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AB58 = { WARP_TYPE_AREA, 0, 0, 0x108, 0xc8, 0, AREA_TEMPLE_OF_DROPLETS, ROOM_TEMPLE_OF_DROPLETS_ENTRANCE, 2, 2, 4, 0 };
|
||||
const Transition gUnk_0813AB6C = { WARP_TYPE_AREA, 0, 0, 0x198, 0x68, 0, AREA_RUINS, ROOM_RUINS_FORTRESS_ENTRANCE, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AB80 = { WARP_TYPE_AREA, 0, 0, 0xc8, 0x48, 0, AREA_HYRULE_CASTLE, ROOM_HYRULE_CASTLE_4, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AB94 = { WARP_TYPE_AREA, 0, 0, 0xb8, 0x5c, 0, AREA_FORTRESS_OF_WINDS, ROOM_FORTRESS_OF_WINDS_MAZAAL, 1, 1, 4, 0 };
|
||||
const Transition gUnk_0813ABA8 = { WARP_TYPE_AREA, 0, 0, 0xb8, 0x78, 0, AREA_FORTRESS_OF_WINDS, ROOM_FORTRESS_OF_WINDS_MAZAAL, 1, 0, 0, 0 };
|
||||
const Transition gUnk_0813ABBC = { WARP_TYPE_AREA, 0, 0, 0xf0, 0xbc, 0, AREA_ROYAL_VALLEY, ROOM_ROYAL_VALLEY_MAIN, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813ABD0 = { WARP_TYPE_AREA, 0, 0, 0x1d8, 0xd8, 0, AREA_PALACE_OF_WINDS, ROOM_PALACE_OF_WINDS_GYORG_TORNADO, 2, 2, 4, 0 };
|
||||
const Transition gUnk_0813ABE4 = { WARP_TYPE_AREA, 0, 0, 0x198, 0x168, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_1F_ENTRANCE, 1, 0, 4, 0 };
|
||||
#if defined(EU) || defined(JP)
|
||||
const ScreenTransitionData gUnk_0813ABF8 = { 1, { 0, 0, 0, 0 }, 0x128, 0x1a8, 0, AREA_CASTLE_GARDEN, ROOM_CASTLE_GARDEN_MAIN, 1, 0, 0, 0 };
|
||||
const Transition gUnk_0813ABF8 = { WARP_TYPE_AREA, 0, 0, 0x128, 0x1a8, 0, AREA_CASTLE_GARDEN, ROOM_CASTLE_GARDEN_MAIN, 1, 0, 0, 0 };
|
||||
#else
|
||||
const ScreenTransitionData gUnk_0813ABF8 = { 1, { 0, 0, 0, 0 }, 0x128, 0x1b0, 0, AREA_CASTLE_GARDEN, ROOM_CASTLE_GARDEN_MAIN, 1, 0, 0, 0 };
|
||||
const Transition gUnk_0813ABF8 = { WARP_TYPE_AREA, 0, 0, 0x128, 0x1b0, 0, AREA_CASTLE_GARDEN, ROOM_CASTLE_GARDEN_MAIN, 1, 0, 0, 0 };
|
||||
#endif
|
||||
const ScreenTransitionData gUnk_0813AC0C = { 1, { 0, 0, 0, 0 }, 0xb0, 0xd8, 0, AREA_VAATI_2, ROOM_VAATI_2_0, 2, 0, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AC20 = { 1, { 0, 0, 0, 0 }, 0xa8, 0x78, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_3F_TRIPLE_DARKNUT, 1, 0, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AC34 = { 1, { 0, 0, 0, 0 }, 0xb0, 0x88, 0, AREA_VAATI_3, ROOM_VAATI_3_0, 1, 0, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AC48 = { 1, { 0, 0, 0, 0 }, 0xb0, 0x88, 0, AREA_VAATI_3, ROOM_VAATI_3_0, 1, 1, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AC5C = { 1, { 0, 0, 0, 0 }, 0xa8, 0x88, 0, AREA_DARK_HYRULE_CASTLE_OUTSIDE, ROOM_DARK_HYRULE_CASTLE_OUTSIDE_GARDEN, 1, 0, 6, 0 };
|
||||
const ScreenTransitionData gUnk_0813AC70 = { 1, { 0, 0, 0, 0 }, 0x0, 0x0, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_1F_THRONE_ROOM, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AC84 = { 1, { 0, 0, 0, 0 }, 0x0, 0x0, 0, AREA_HYRULE_CASTLE, ROOM_HYRULE_CASTLE_2, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AC98 = { 1, { 0, 0, 0, 0 }, 0x0, 0x0, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_1F_ENTRANCE, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813ACAC = { 1, { 0, 0, 0, 0 }, 0x0, 0x0, 0, AREA_HYRULE_CASTLE, ROOM_HYRULE_CASTLE_0, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813ACC0 = { 1, { 0, 0, 0, 0 }, 0x0, 0x0, 0, AREA_HYRULE_CASTLE, ROOM_HYRULE_CASTLE_1, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813ACD4 = { 1, { 0, 0, 0, 0 }, 0x0, 0x0, 0, AREA_MINISH_WOODS, ROOM_MINISH_WOODS_MAIN, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813ACE8 = { 1, { 0, 0, 0, 0 }, 0x0, 0x0, 0, AREA_MT_CRENEL, ROOM_MT_CRENEL_TOP, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813ACFC = { 1, { 0, 0, 0, 0 }, 0xa8, 0x88, 0, AREA_SANCTUARY_ENTRANCE, ROOM_SANCTUARY_ENTRANCE_MAIN, 1, 0, 6, 0 };
|
||||
const ScreenTransitionData gUnk_0813AD10 = { 1, { 0, 0, 0, 0 }, 0x50, 0x38, 0, AREA_HOUSE_INTERIORS_1, ROOM_HOUSE_INTERIORS_1_INN_WEST_ROOM, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AD24 = { 1, { 0, 0, 0, 0 }, 0x50, 0x38, 0, AREA_HOUSE_INTERIORS_1, ROOM_HOUSE_INTERIORS_1_INN_MIDDLE_ROOM, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AD38 = { 1, { 0, 0, 0, 0 }, 0x60, 0x38, 0, AREA_HOUSE_INTERIORS_1, ROOM_HOUSE_INTERIORS_1_INN_EAST_ROOM, 1, 0, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AD4C = { 1, { 0, 0, 0, 0 }, 0x78, 0x68, 0, AREA_HOUSE_INTERIORS_3, ROOM_HOUSE_INTERIORS_3_BORLOV_ENTRANCE, 1, 0, 0, 0 };
|
||||
const ScreenTransitionData gUnk_0813AD60 = { 1, { 0, 0, 0, 0 }, 0x98, 0x88, 0, AREA_SIMONS_SIMULATION, ROOM_SIMONS_SIMULATION_0, 1, 2, 4, 0 };
|
||||
const ScreenTransitionData gUnk_0813AD74 = { 1, { 0, 0, 0, 0 }, 0x50, 0x48, 0, AREA_HOUSE_INTERIORS_3, ROOM_HOUSE_INTERIORS_3_SIMON, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AC0C = { WARP_TYPE_AREA, 0, 0, 0xb0, 0xd8, 0, AREA_VAATI_2, ROOM_VAATI_2_0, 2, 0, 0, 0 };
|
||||
const Transition gUnk_0813AC20 = { WARP_TYPE_AREA, 0, 0, 0xa8, 0x78, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_3F_TRIPLE_DARKNUT, 1, 0, 0, 0 };
|
||||
const Transition gUnk_0813AC34 = { WARP_TYPE_AREA, 0, 0, 0xb0, 0x88, 0, AREA_VAATI_3, ROOM_VAATI_3_0, 1, 0, 0, 0 };
|
||||
const Transition gUnk_0813AC48 = { WARP_TYPE_AREA, 0, 0, 0xb0, 0x88, 0, AREA_VAATI_3, ROOM_VAATI_3_0, 1, 1, 4, 0 };
|
||||
const Transition gUnk_0813AC5C = { WARP_TYPE_AREA, 0, 0, 0xa8, 0x88, 0, AREA_DARK_HYRULE_CASTLE_OUTSIDE, ROOM_DARK_HYRULE_CASTLE_OUTSIDE_GARDEN, 1, 0, 6, 0 };
|
||||
const Transition gUnk_0813AC70 = { WARP_TYPE_AREA, 0, 0, 0x0, 0x0, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_1F_THRONE_ROOM, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AC84 = { WARP_TYPE_AREA, 0, 0, 0x0, 0x0, 0, AREA_HYRULE_CASTLE, ROOM_HYRULE_CASTLE_2, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AC98 = { WARP_TYPE_AREA, 0, 0, 0x0, 0x0, 0, AREA_DARK_HYRULE_CASTLE, ROOM_DARK_HYRULE_CASTLE_1F_ENTRANCE, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813ACAC = { WARP_TYPE_AREA, 0, 0, 0x0, 0x0, 0, AREA_HYRULE_CASTLE, ROOM_HYRULE_CASTLE_0, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813ACC0 = { WARP_TYPE_AREA, 0, 0, 0x0, 0x0, 0, AREA_HYRULE_CASTLE, ROOM_HYRULE_CASTLE_1, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813ACD4 = { WARP_TYPE_AREA, 0, 0, 0x0, 0x0, 0, AREA_MINISH_WOODS, ROOM_MINISH_WOODS_MAIN, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813ACE8 = { WARP_TYPE_AREA, 0, 0, 0x0, 0x0, 0, AREA_MT_CRENEL, ROOM_MT_CRENEL_TOP, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813ACFC = { WARP_TYPE_AREA, 0, 0, 0xa8, 0x88, 0, AREA_SANCTUARY_ENTRANCE, ROOM_SANCTUARY_ENTRANCE_MAIN, 1, 0, 6, 0 };
|
||||
const Transition gUnk_0813AD10 = { WARP_TYPE_AREA, 0, 0, 0x50, 0x38, 0, AREA_HOUSE_INTERIORS_1, ROOM_HOUSE_INTERIORS_1_INN_WEST_ROOM, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AD24 = { WARP_TYPE_AREA, 0, 0, 0x50, 0x38, 0, AREA_HOUSE_INTERIORS_1, ROOM_HOUSE_INTERIORS_1_INN_MIDDLE_ROOM, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AD38 = { WARP_TYPE_AREA, 0, 0, 0x60, 0x38, 0, AREA_HOUSE_INTERIORS_1, ROOM_HOUSE_INTERIORS_1_INN_EAST_ROOM, 1, 0, 4, 0 };
|
||||
const Transition gUnk_0813AD4C = { WARP_TYPE_AREA, 0, 0, 0x78, 0x68, 0, AREA_HOUSE_INTERIORS_3, ROOM_HOUSE_INTERIORS_3_BORLOV_ENTRANCE, 1, 0, 0, 0 };
|
||||
const Transition gUnk_0813AD60 = { WARP_TYPE_AREA, 0, 0, 0x98, 0x88, 0, AREA_SIMONS_SIMULATION, ROOM_SIMONS_SIMULATION_0, 1, 2, 4, 0 };
|
||||
const Transition gUnk_0813AD74 = { WARP_TYPE_AREA, 0, 0, 0x50, 0x48, 0, AREA_HOUSE_INTERIORS_3, ROOM_HOUSE_INTERIORS_3_SIMON, 1, 0, 4, 0 };
|
||||
|
||||
const ScreenTransitionData gUnk_0813AD88[] = {
|
||||
{ 1, { 0, 0, 0, 0 }, 0x128, 0x188, 0, AREA_LAKE_HYLIA, ROOM_LAKE_HYLIA_MAIN, 1, 9, 4, 0},
|
||||
{ 1, { 0, 0, 0, 0 }, 0x190, 0x1c0, 0, AREA_CLOUD_TOPS, ROOM_CLOUD_TOPS_CLOUD_BOTTOMS, 1, 10, 4, 0},
|
||||
{ 1, { 0, 0, 0, 0 }, 0x1e8, 0x1f0, 0, AREA_CLOUD_TOPS, ROOM_CLOUD_TOPS_CLOUD_TOPS, 1, 10, 4, 0},
|
||||
{ 1, { 0, 0, 0, 0 }, 0x268, 0x58, 0, AREA_PALACE_OF_WINDS, ROOM_PALACE_OF_WINDS_ENTRANCE_ROOM, 1, 10, 6, 0},
|
||||
const Transition gUnk_0813AD88[] = {
|
||||
{ WARP_TYPE_AREA, 0, 0, 0x128, 0x188, 0, AREA_LAKE_HYLIA, ROOM_LAKE_HYLIA_MAIN, 1, 9, 4, 0},
|
||||
{ WARP_TYPE_AREA, 0, 0, 0x190, 0x1c0, 0, AREA_CLOUD_TOPS, ROOM_CLOUD_TOPS_CLOUD_BOTTOMS, 1, 10, 4, 0},
|
||||
{ WARP_TYPE_AREA, 0, 0, 0x1e8, 0x1f0, 0, AREA_CLOUD_TOPS, ROOM_CLOUD_TOPS_CLOUD_TOPS, 1, 10, 4, 0},
|
||||
{ WARP_TYPE_AREA, 0, 0, 0x268, 0x58, 0, AREA_PALACE_OF_WINDS, ROOM_PALACE_OF_WINDS_ENTRANCE_ROOM, 1, 10, 6, 0},
|
||||
#if defined(EU)
|
||||
{ 1, { 0, 0, 0, 0 }, 0x200, 0x350, 0, AREA_PALACE_OF_WINDS_BOSS, ROOM_PALACE_OF_WINDS_BOSS_0, 2, 10, 4, 0},
|
||||
{ WARP_TYPE_AREA, 0, 0, 0x200, 0x350, 0, AREA_PALACE_OF_WINDS_BOSS, ROOM_PALACE_OF_WINDS_BOSS_0, 2, 10, 4, 0},
|
||||
#else
|
||||
{ 1, { 0, 0, 0, 0 }, 0x200, 0x300, 0, AREA_PALACE_OF_WINDS_BOSS, ROOM_PALACE_OF_WINDS_BOSS_0, 2, 10, 4, 0},
|
||||
{ WARP_TYPE_AREA, 0, 0, 0x200, 0x300, 0, AREA_PALACE_OF_WINDS_BOSS, ROOM_PALACE_OF_WINDS_BOSS_0, 2, 10, 4, 0},
|
||||
#endif
|
||||
};
|
||||
|
||||
const ScreenTransitionData gUnk_0813ADEC[] = {
|
||||
{ 1, { 0, 0, 0, 0 }, 0xb8, 0x58, 0, AREA_WIND_TRIBE_TOWER, ROOM_WIND_TRIBE_TOWER_ENTRANCE, 1, 0, 4, 0},
|
||||
{ 1, { 0, 0, 0, 0 }, 0x248, 0x108, 0, AREA_HYRULE_FIELD, ROOM_HYRULE_FIELD_SOUTH_HYRULE_FIELD, 1, 0, 4, 0},
|
||||
const Transition gUnk_0813ADEC[] = {
|
||||
{ WARP_TYPE_AREA, 0, 0, 0xb8, 0x58, 0, AREA_WIND_TRIBE_TOWER, ROOM_WIND_TRIBE_TOWER_ENTRANCE, 1, 0, 4, 0},
|
||||
{ WARP_TYPE_AREA, 0, 0, 0x248, 0x108, 0, AREA_HYRULE_FIELD, ROOM_HYRULE_FIELD_SOUTH_HYRULE_FIELD, 1, 0, 4, 0},
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
|
||||
+1505
-1505
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -6,13 +6,14 @@
|
||||
*/
|
||||
|
||||
#include "common.h"
|
||||
#include "functions.h"
|
||||
#include "game.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "message.h"
|
||||
#include "screen.h"
|
||||
#include "sound.h"
|
||||
#include "save.h"
|
||||
#include "fade.h"
|
||||
|
||||
void sub_0805FA04(void);
|
||||
void sub_0805FA98(void);
|
||||
|
||||
+3
-2
@@ -7,14 +7,15 @@
|
||||
|
||||
#include "common.h"
|
||||
#include "fileselect.h"
|
||||
#include "functions.h"
|
||||
#include "game.h"
|
||||
#include "global.h"
|
||||
#include "main.h"
|
||||
#include "menu.h"
|
||||
#include "message.h"
|
||||
#include "screen.h"
|
||||
#include "menu.h"
|
||||
#include "sound.h"
|
||||
#include "affine.h"
|
||||
#include "fade.h"
|
||||
|
||||
void sub_080A30AC(void);
|
||||
void sub_080A2E40(void);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#include "global.h"
|
||||
#include "droptables.h"
|
||||
|
||||
const Droptable gEnemyDroptables[] = {
|
||||
|
||||
@@ -5,7 +5,11 @@
|
||||
* @brief Acro Bandits enemy
|
||||
*/
|
||||
#include "enemy.h"
|
||||
#include "functions.h"
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "player.h"
|
||||
#include "physics.h"
|
||||
#include "asm.h"
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ Entity base;
|
||||
|
||||
+12
-6
@@ -4,21 +4,27 @@
|
||||
*
|
||||
* @brief Armos enemy
|
||||
*/
|
||||
#include "enemy/armos.h"
|
||||
#include "collision.h"
|
||||
#include "common.h"
|
||||
#include "enemy.h"
|
||||
#include "sound.h"
|
||||
#include "flags.h"
|
||||
#include "functions.h"
|
||||
#include "physics.h"
|
||||
#include "global.h"
|
||||
#include "hitbox.h"
|
||||
#include "tiles.h"
|
||||
#include "room.h"
|
||||
#include "player.h"
|
||||
#include "asm.h"
|
||||
#include "map.h"
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ Entity base;
|
||||
/*0x68*/ u8 unk_68[0x10];
|
||||
/*0x78*/ u16 unk_78;
|
||||
/*0x7a*/ u16 unk_7a;
|
||||
/*0x7c*/ ScreenTransitionData* unk_7c;
|
||||
/*0x7c*/ Transition* unk_7c;
|
||||
/*0x80*/ u8 unk_80;
|
||||
/*0x81*/ u8 unk_81;
|
||||
/*0x82*/ u8 unk_82;
|
||||
@@ -66,11 +72,11 @@ void sub_080300E8(void) {
|
||||
}
|
||||
}
|
||||
|
||||
void sub_08030118(u32 armosId) {
|
||||
void Armos_SetFlagFromTransition(u32 armosId) {
|
||||
if (((gRoomTransition.armos_data.field_0xac >> armosId) & 1) != 0) {
|
||||
SetLocalFlagByBank(FLAG_BANK_3, armosId + 0x67);
|
||||
SetLocalFlagByBank(FLAG_BANK_3, armosId + AMOS_00_00);
|
||||
} else {
|
||||
ClearLocalFlagByBank(FLAG_BANK_3, armosId + 0x67);
|
||||
ClearLocalFlagByBank(FLAG_BANK_3, armosId + AMOS_00_00);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +138,7 @@ void sub_0803026C(ArmosEntity* this) {
|
||||
this->unk_84 = (0x47d >> this->unk_80) & 1;
|
||||
}
|
||||
if (super->type2 != 0) {
|
||||
this->unk_7c = (ScreenTransitionData*)GetCurrentRoomProperty(super->type2);
|
||||
this->unk_7c = (Transition*)GetCurrentRoomProperty(super->type2);
|
||||
}
|
||||
this->unk_81 = super->health;
|
||||
sub_08030580(this);
|
||||
|
||||
@@ -5,8 +5,12 @@
|
||||
* @brief Ball Chain Soldier enemy
|
||||
*/
|
||||
#include "enemy.h"
|
||||
#include "sound.h"
|
||||
#include "projectile.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
#include "room.h"
|
||||
#include "physics.h"
|
||||
#include "asm.h"
|
||||
|
||||
typedef struct {
|
||||
Entity base;
|
||||
|
||||
+5
-1
@@ -5,7 +5,11 @@
|
||||
* @brief Beetle enemy
|
||||
*/
|
||||
#include "enemy.h"
|
||||
#include "functions.h"
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "player.h"
|
||||
#include "physics.h"
|
||||
#include "asm.h"
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ Entity base;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
*
|
||||
* @brief Blade Trap enemy
|
||||
*/
|
||||
#include "entity.h"
|
||||
#include "object.h"
|
||||
#include "room.h"
|
||||
#include "sound.h"
|
||||
#include "room.h"
|
||||
#include "physics.h"
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ Entity base;
|
||||
|
||||
+5
-3
@@ -7,9 +7,11 @@
|
||||
#include "asm.h"
|
||||
#include "collision.h"
|
||||
#include "enemy.h"
|
||||
#include "functions.h"
|
||||
#include "object.h"
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "object.h"
|
||||
#include "physics.h"
|
||||
#include "player.h"
|
||||
|
||||
typedef struct {
|
||||
/*0x00*/ Entity base;
|
||||
@@ -177,7 +179,7 @@ void sub_0802C91C(BobombEntity* this) {
|
||||
sub_0802CBC4(this);
|
||||
} else {
|
||||
if ((super->timer & 0xf) == 8) {
|
||||
CreateDustSmall(super);
|
||||
CreateDashFx(super);
|
||||
}
|
||||
sub_0802CC18(this);
|
||||
}
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
#include "object.h"
|
||||
#include "room.h"
|
||||
#include "physics.h"
|
||||
#include "player.h"
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -5,9 +5,12 @@
|
||||
* @brief Bombarossa enemy
|
||||
*/
|
||||
#include "enemy.h"
|
||||
#include "entity.h"
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "object.h"
|
||||
#include "asm.h"
|
||||
#include "room.h"
|
||||
#include "physics.h"
|
||||
|
||||
typedef struct {
|
||||
Entity base;
|
||||
|
||||
@@ -5,8 +5,12 @@
|
||||
* @brief Bow Moblin enemy
|
||||
*/
|
||||
#include "enemy.h"
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "projectile.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
#include "physics.h"
|
||||
#include "asm.h"
|
||||
|
||||
typedef struct {
|
||||
Entity base;
|
||||
|
||||
@@ -6,14 +6,18 @@
|
||||
*/
|
||||
#include "asm.h"
|
||||
#include "enemy.h"
|
||||
#include "functions.h"
|
||||
#include "game.h"
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "flags.h"
|
||||
#include "projectile.h"
|
||||
#include "item.h"
|
||||
#include "kinstone.h"
|
||||
#include "message.h"
|
||||
#include "npc.h"
|
||||
#include "save.h"
|
||||
#include "tiles.h"
|
||||
#include "vram.h"
|
||||
#include "color.h"
|
||||
|
||||
struct SalesOffering {
|
||||
u8 field_0x0;
|
||||
@@ -37,7 +41,7 @@ typedef struct {
|
||||
/*0x80*/ u8 unk_80;
|
||||
/*0x81*/ u8 unk_81;
|
||||
/*0x82*/ u8 unused2[4];
|
||||
/*0x86*/ u16 unk_86;
|
||||
/*0x86*/ u16 flag;
|
||||
} BusinessScrubEntity;
|
||||
|
||||
void sub_08028E9C(BusinessScrubEntity*);
|
||||
@@ -95,7 +99,7 @@ void BusinessScrub_Action0(BusinessScrubEntity* this) {
|
||||
super->animationState = 0;
|
||||
super->direction = DirectionSouth;
|
||||
sub_08028E9C(this);
|
||||
if ((*(u8*)this->unk_7c & 1) || CheckFlags(this->unk_86)) {
|
||||
if ((*(u8*)this->unk_7c & 1) || CheckFlags(this->flag)) {
|
||||
super->action = 4;
|
||||
super->timer = 120;
|
||||
super->spritePriority.b1 = 1;
|
||||
@@ -227,7 +231,7 @@ void BusinessScrub_Action3(BusinessScrubEntity* this) {
|
||||
iVar1->z.HALF.HI -= 12;
|
||||
SetEntityPriority(iVar1, PRIO_MESSAGE);
|
||||
}
|
||||
SetFlag(this->unk_86);
|
||||
SetFlag(this->flag);
|
||||
sub_0802925C(this);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -4,9 +4,17 @@
|
||||
*
|
||||
* @brief Business Scrub Prologue enemy
|
||||
*/
|
||||
#include "object/cutsceneMiscObject.h"
|
||||
#include "enemy.h"
|
||||
#include "sound.h"
|
||||
#include "effects.h"
|
||||
#include "projectile.h"
|
||||
#include "entity.h"
|
||||
#include "functions.h"
|
||||
#include "script.h"
|
||||
#include "physics.h"
|
||||
#include "room.h"
|
||||
#include "player.h"
|
||||
#include "asm.h"
|
||||
|
||||
typedef struct {
|
||||
Entity base;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user