mirror of
https://github.com/zeldaret/oot
synced 2026-08-15 21:00:06 -04:00
Merge branch 'master' of https://github.com/zeldaret/oot
This commit is contained in:
@@ -1,123 +0,0 @@
|
||||
.rdata
|
||||
glabel D_801462D0
|
||||
.asciz "8Mバイト以上のメモリが搭載されています\n"
|
||||
# EUC-JP: 8Mバイト以上のメモリが搭載されています | 8MB or more memory is installed
|
||||
.balign 4
|
||||
|
||||
glabel D_801462FC
|
||||
.asciz "RAM 8M mode (N64DD対応)\n"
|
||||
# EUC-JP: 対応 | Correspondence
|
||||
.balign 4
|
||||
|
||||
glabel D_80146318
|
||||
.asciz "このバージョンのマージンは %dK バイトです\n"
|
||||
# EUC-JP: このバージョンのマージンは %dK バイトです | The margin for this version is% dK bytes
|
||||
.balign 4
|
||||
|
||||
glabel D_80146344
|
||||
.asciz "RAM4M mode\n"
|
||||
.balign 4
|
||||
|
||||
glabel D_80146350
|
||||
.asciz "../sys_cfb.c"
|
||||
.balign 4
|
||||
|
||||
glabel D_80146360
|
||||
.asciz "システムが使用する最終アドレスは %08x です\n"
|
||||
# EUC-JP: システムが使用する最終アドレスは %08x です | The final address used by the system is% 08x
|
||||
.balign 4
|
||||
|
||||
glabel D_8014638C
|
||||
.asciz "フレームバッファのアドレスは %08x と %08x です\n"
|
||||
# EUC-JP: フレームバッファのアドレスは %08x と %08x です | Frame buffer addresses are% 08x and% 08x
|
||||
.balign 4
|
||||
|
||||
.text
|
||||
glabel SysCfb_Init
|
||||
/* B41540 800CA3A0 3C028000 */ lui $v0, %hi(osMemSize) # $v0, 0x8000
|
||||
/* B41544 800CA3A4 8C420318 */ lw $v0, %lo(osMemSize)($v0)
|
||||
/* B41548 800CA3A8 3C010080 */ lui $at, 0x80
|
||||
/* B4154C 800CA3AC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* B41550 800CA3B0 0041082B */ sltu $at, $v0, $at
|
||||
/* B41554 800CA3B4 AFBF0014 */ sw $ra, 0x14($sp)
|
||||
/* B41558 800CA3B8 1420001C */ bnez $at, .L800CA42C
|
||||
/* B4155C 800CA3BC AFA40018 */ sw $a0, 0x18($sp)
|
||||
/* B41560 800CA3C0 3C048014 */ lui $a0, %hi(D_801462D0) # $a0, 0x8014
|
||||
/* B41564 800CA3C4 0C00084C */ jal osSyncPrintf
|
||||
/* B41568 800CA3C8 248462D0 */ addiu $a0, %lo(D_801462D0) # addiu $a0, $a0, 0x62d0
|
||||
/* B4156C 800CA3CC 8FAE0018 */ lw $t6, 0x18($sp)
|
||||
/* B41570 800CA3D0 24010001 */ li $at, 1
|
||||
/* B41574 800CA3D4 3C048014 */ lui $a0, %hi(D_801462FC) # $a0, 0x8014
|
||||
/* B41578 800CA3D8 15C10009 */ bne $t6, $at, .L800CA400
|
||||
/* B4157C 800CA3DC 00000000 */ nop
|
||||
/* B41580 800CA3E0 0C00084C */ jal osSyncPrintf
|
||||
/* B41584 800CA3E4 248462FC */ addiu $a0, %lo(D_801462FC) # addiu $a0, $a0, 0x62fc
|
||||
/* B41588 800CA3E8 3C028017 */ lui $v0, %hi(sSysCfbEnd) # $v0, 0x8017
|
||||
/* B4158C 800CA3EC 3C0F805F */ lui $t7, (0x805FB000 >> 16) # lui $t7, 0x805f
|
||||
/* B41590 800CA3F0 2442A598 */ addiu $v0, %lo(sSysCfbEnd) # addiu $v0, $v0, -0x5a68
|
||||
/* B41594 800CA3F4 35EFB000 */ ori $t7, (0x805FB000 & 0xFFFF) # ori $t7, $t7, 0xb000
|
||||
/* B41598 800CA3F8 1000001E */ b .L800CA474
|
||||
/* B4159C 800CA3FC AC4F0000 */ sw $t7, ($v0)
|
||||
.L800CA400:
|
||||
/* B415A0 800CA400 3C048014 */ lui $a0, %hi(D_80146318) # $a0, 0x8014
|
||||
/* B415A4 800CA404 24846318 */ addiu $a0, %lo(D_80146318) # addiu $a0, $a0, 0x6318
|
||||
/* B415A8 800CA408 0C00084C */ jal osSyncPrintf
|
||||
/* B415AC 800CA40C 2405012F */ li $a1, 303
|
||||
/* B415B0 800CA410 3C188044 */ lui $t8, (0x8044BE80 >> 16) # lui $t8, 0x8044
|
||||
/* B415B4 800CA414 3718BE80 */ ori $t8, (0x8044BE80 & 0xFFFF) # ori $t8, $t8, 0xbe80
|
||||
/* B415B8 800CA418 3C018017 */ lui $at, %hi(sSysCfbEnd) # $at, 0x8017
|
||||
/* B415BC 800CA41C 3C028017 */ lui $v0, %hi(sSysCfbEnd) # $v0, 0x8017
|
||||
/* B415C0 800CA420 2442A598 */ addiu $v0, %lo(sSysCfbEnd) # addiu $v0, $v0, -0x5a68
|
||||
/* B415C4 800CA424 10000013 */ b .L800CA474
|
||||
/* B415C8 800CA428 AC38A598 */ sw $t8, %lo(sSysCfbEnd)($at)
|
||||
.L800CA42C:
|
||||
/* B415CC 800CA42C 3C010040 */ lui $at, 0x40
|
||||
/* B415D0 800CA430 0041082B */ sltu $at, $v0, $at
|
||||
/* B415D4 800CA434 1420000A */ bnez $at, .L800CA460
|
||||
/* B415D8 800CA438 3C048014 */ lui $a0, %hi(D_80146350)
|
||||
/* B415DC 800CA43C 3C048014 */ lui $a0, %hi(D_80146344) # $a0, 0x8014
|
||||
/* B415E0 800CA440 0C00084C */ jal osSyncPrintf
|
||||
/* B415E4 800CA444 24846344 */ addiu $a0, %lo(D_80146344) # addiu $a0, $a0, 0x6344
|
||||
/* B415E8 800CA448 3C198040 */ lui $t9, 0x8040
|
||||
/* B415EC 800CA44C 3C018017 */ lui $at, %hi(sSysCfbEnd) # $at, 0x8017
|
||||
/* B415F0 800CA450 3C028017 */ lui $v0, %hi(sSysCfbEnd) # $v0, 0x8017
|
||||
/* B415F4 800CA454 2442A598 */ addiu $v0, %lo(sSysCfbEnd) # addiu $v0, $v0, -0x5a68
|
||||
/* B415F8 800CA458 10000006 */ b .L800CA474
|
||||
/* B415FC 800CA45C AC39A598 */ sw $t9, %lo(sSysCfbEnd)($at)
|
||||
.L800CA460:
|
||||
/* B41600 800CA460 24846350 */ addiu $a0, %lo(D_80146350)
|
||||
/* B41604 800CA464 0C000B94 */ jal LogUtils_HungupThread
|
||||
/* B41608 800CA468 24050162 */ li $a1, 354
|
||||
/* B4160C 800CA46C 3C028017 */ lui $v0, %hi(sSysCfbEnd) # $v0, 0x8017
|
||||
/* B41610 800CA470 2442A598 */ addiu $v0, %lo(sSysCfbEnd) # addiu $v0, $v0, -0x5a68
|
||||
.L800CA474:
|
||||
/* B41614 800CA474 8C480000 */ lw $t0, ($v0)
|
||||
/* B41618 800CA478 2401FFC0 */ li $at, -64
|
||||
/* B4161C 800CA47C 3C048014 */ lui $a0, %hi(D_80146360) # $a0, 0x8014
|
||||
/* B41620 800CA480 01012824 */ and $a1, $t0, $at
|
||||
/* B41624 800CA484 AC450000 */ sw $a1, ($v0)
|
||||
/* B41628 800CA488 0C00084C */ jal osSyncPrintf
|
||||
/* B4162C 800CA48C 24846360 */ addiu $a0, %lo(D_80146360) # addiu $a0, $a0, 0x6360
|
||||
/* B41630 800CA490 3C028017 */ lui $v0, %hi(sSysCfbEnd) # $v0, 0x8017
|
||||
/* B41634 800CA494 8C42A598 */ lw $v0, %lo(sSysCfbEnd)($v0)
|
||||
/* B41638 800CA498 3C01FFFB */ lui $at, (0xFFFB5000 >> 16) # lui $at, 0xfffb
|
||||
/* B4163C 800CA49C 34215000 */ ori $at, (0xFFFB5000 & 0xFFFF) # ori $at, $at, 0x5000
|
||||
/* B41640 800CA4A0 00415021 */ addu $t2, $v0, $at
|
||||
/* B41644 800CA4A4 3C018017 */ lui $at, %hi(sSysCfbFbPtr) # $at, 0x8017
|
||||
/* B41648 800CA4A8 AC2AA590 */ sw $t2, %lo(sSysCfbFbPtr)($at)
|
||||
/* B4164C 800CA4AC 3C01FFFD */ lui $at, (0xFFFDA800 >> 16) # lui $at, 0xfffd
|
||||
/* B41650 800CA4B0 3421A800 */ ori $at, (0xFFFDA800 & 0xFFFF) # ori $at, $at, 0xa800
|
||||
/* B41654 800CA4B4 00415821 */ addu $t3, $v0, $at
|
||||
/* B41658 800CA4B8 3C038017 */ lui $v1, %hi(sSysCfbFbPtr) # $v1, 0x8017
|
||||
/* B4165C 800CA4BC 3C018017 */ lui $at, %hi(sSysCfbFbPtr+4) # $at, 0x8017
|
||||
/* B41660 800CA4C0 2463A590 */ addiu $v1, %lo(sSysCfbFbPtr) # addiu $v1, $v1, -0x5a70
|
||||
/* B41664 800CA4C4 AC2BA594 */ sw $t3, %lo(sSysCfbFbPtr+4)($at)
|
||||
/* B41668 800CA4C8 3C048014 */ lui $a0, %hi(D_8014638C) # $a0, 0x8014
|
||||
/* B4166C 800CA4CC 2484638C */ addiu $a0, %lo(D_8014638C) # addiu $a0, $a0, 0x638c
|
||||
/* B41670 800CA4D0 8C660004 */ lw $a2, 4($v1)
|
||||
/* B41674 800CA4D4 0C00084C */ jal osSyncPrintf
|
||||
/* B41678 800CA4D8 8C650000 */ lw $a1, ($v1)
|
||||
/* B4167C 800CA4DC 8FBF0014 */ lw $ra, 0x14($sp)
|
||||
/* B41680 800CA4E0 27BD0018 */ addiu $sp, $sp, 0x18
|
||||
/* B41684 800CA4E4 03E00008 */ jr $ra
|
||||
/* B41688 800CA4E8 00000000 */ nop
|
||||
@@ -1,19 +0,0 @@
|
||||
glabel BgSpot09Obj_Destroy
|
||||
/* 0035C 808B1E3C 27BDFFE8 */ addiu $sp, $sp, 0xFFE8 ## $sp = FFFFFFE8
|
||||
/* 00360 808B1E40 AFBF0014 */ sw $ra, 0x0014($sp)
|
||||
/* 00364 808B1E44 AFA40018 */ sw $a0, 0x0018($sp)
|
||||
/* 00368 808B1E48 848F001C */ lh $t7, 0x001C($a0) ## 0000001C
|
||||
/* 0036C 808B1E4C 00807025 */ or $t6, $a0, $zero ## $t6 = 00000000
|
||||
/* 00370 808B1E50 00A02025 */ or $a0, $a1, $zero ## $a0 = 00000000
|
||||
/* 00374 808B1E54 11E00003 */ beq $t7, $zero, .L808B1E64
|
||||
/* 00378 808B1E58 24A50810 */ addiu $a1, $a1, 0x0810 ## $a1 = 00000810
|
||||
/* 0037C 808B1E5C 0C00FB56 */ jal DynaPolyInfo_Free
|
||||
## DynaPolyInfo_delReserve
|
||||
/* 00380 808B1E60 8DC6014C */ lw $a2, 0x014C($t6) ## 0000014C
|
||||
.L808B1E64:
|
||||
/* 00384 808B1E64 8FBF0014 */ lw $ra, 0x0014($sp)
|
||||
/* 00388 808B1E68 27BD0018 */ addiu $sp, $sp, 0x0018 ## $sp = 00000000
|
||||
/* 0038C 808B1E6C 03E00008 */ jr $ra
|
||||
/* 00390 808B1E70 00000000 */ nop
|
||||
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
glabel BgSpot09Obj_Draw
|
||||
/* 003A0 808B1E80 27BDFFC0 */ addiu $sp, $sp, 0xFFC0 ## $sp = FFFFFFC0
|
||||
/* 003A4 808B1E84 AFB00014 */ sw $s0, 0x0014($sp)
|
||||
/* 003A8 808B1E88 00808025 */ or $s0, $a0, $zero ## $s0 = 00000000
|
||||
/* 003AC 808B1E8C AFBF001C */ sw $ra, 0x001C($sp)
|
||||
/* 003B0 808B1E90 AFB10018 */ sw $s1, 0x0018($sp)
|
||||
/* 003B4 808B1E94 860E001C */ lh $t6, 0x001C($s0) ## 0000001C
|
||||
/* 003B8 808B1E98 00A08825 */ or $s1, $a1, $zero ## $s1 = 00000000
|
||||
/* 003BC 808B1E9C 00A02025 */ or $a0, $a1, $zero ## $a0 = 00000000
|
||||
/* 003C0 808B1EA0 3C05808B */ lui $a1, %hi(D_808B1FC8) ## $a1 = 808B0000
|
||||
/* 003C4 808B1EA4 000E7880 */ sll $t7, $t6, 2
|
||||
/* 003C8 808B1EA8 00AF2821 */ addu $a1, $a1, $t7
|
||||
/* 003CC 808B1EAC 0C00D498 */ jal Draw_DListOpa
|
||||
|
||||
/* 003D0 808B1EB0 8CA51FC8 */ lw $a1, %lo(D_808B1FC8)($a1)
|
||||
/* 003D4 808B1EB4 8618001C */ lh $t8, 0x001C($s0) ## 0000001C
|
||||
/* 003D8 808B1EB8 24010003 */ addiu $at, $zero, 0x0003 ## $at = 00000003
|
||||
/* 003DC 808B1EBC 27A4002C */ addiu $a0, $sp, 0x002C ## $a0 = FFFFFFEC
|
||||
/* 003E0 808B1EC0 17010024 */ bne $t8, $at, .L808B1F54
|
||||
/* 003E4 808B1EC4 3C06808B */ lui $a2, %hi(D_808B207C) ## $a2 = 808B0000
|
||||
/* 003E8 808B1EC8 8E250000 */ lw $a1, 0x0000($s1) ## 00000000
|
||||
/* 003EC 808B1ECC 24C6207C */ addiu $a2, $a2, %lo(D_808B207C) ## $a2 = 808B207C
|
||||
/* 003F0 808B1ED0 24070184 */ addiu $a3, $zero, 0x0184 ## $a3 = 00000184
|
||||
/* 003F4 808B1ED4 0C031AB1 */ jal func_800C6AC4
|
||||
/* 003F8 808B1ED8 00A08025 */ or $s0, $a1, $zero ## $s0 = 00000000
|
||||
/* 003FC 808B1EDC 0C024F61 */ jal func_80093D84
|
||||
/* 00400 808B1EE0 8E240000 */ lw $a0, 0x0000($s1) ## 00000000
|
||||
/* 00404 808B1EE4 8E0202D0 */ lw $v0, 0x02D0($s0) ## 000002D0
|
||||
/* 00408 808B1EE8 3C08DA38 */ lui $t0, 0xDA38 ## $t0 = DA380000
|
||||
/* 0040C 808B1EEC 35080003 */ ori $t0, $t0, 0x0003 ## $t0 = DA380003
|
||||
/* 00410 808B1EF0 24590008 */ addiu $t9, $v0, 0x0008 ## $t9 = 00000008
|
||||
/* 00414 808B1EF4 AE1902D0 */ sw $t9, 0x02D0($s0) ## 000002D0
|
||||
/* 00418 808B1EF8 AC480000 */ sw $t0, 0x0000($v0) ## 00000000
|
||||
/* 0041C 808B1EFC 8E240000 */ lw $a0, 0x0000($s1) ## 00000000
|
||||
/* 00420 808B1F00 3C05808B */ lui $a1, %hi(D_808B2094) ## $a1 = 808B0000
|
||||
/* 00424 808B1F04 24A52094 */ addiu $a1, $a1, %lo(D_808B2094) ## $a1 = 808B2094
|
||||
/* 00428 808B1F08 24060187 */ addiu $a2, $zero, 0x0187 ## $a2 = 00000187
|
||||
/* 0042C 808B1F0C 0C0346A2 */ jal Matrix_NewMtx
|
||||
/* 00430 808B1F10 AFA20028 */ sw $v0, 0x0028($sp)
|
||||
/* 00434 808B1F14 8FA30028 */ lw $v1, 0x0028($sp)
|
||||
/* 00438 808B1F18 3C0B0601 */ lui $t3, 0x0601 ## $t3 = 06010000
|
||||
/* 0043C 808B1F1C 256B8010 */ addiu $t3, $t3, 0x8010 ## $t3 = 06008010
|
||||
/* 00440 808B1F20 AC620004 */ sw $v0, 0x0004($v1) ## 00000004
|
||||
/* 00444 808B1F24 8E0202D0 */ lw $v0, 0x02D0($s0) ## 000002D0
|
||||
/* 00448 808B1F28 3C0ADE00 */ lui $t2, 0xDE00 ## $t2 = DE000000
|
||||
/* 0044C 808B1F2C 3C06808B */ lui $a2, %hi(D_808B20AC) ## $a2 = 808B0000
|
||||
/* 00450 808B1F30 24490008 */ addiu $t1, $v0, 0x0008 ## $t1 = 00000008
|
||||
/* 00454 808B1F34 AE0902D0 */ sw $t1, 0x02D0($s0) ## 000002D0
|
||||
/* 00458 808B1F38 AC4B0004 */ sw $t3, 0x0004($v0) ## 00000004
|
||||
/* 0045C 808B1F3C AC4A0000 */ sw $t2, 0x0000($v0) ## 00000000
|
||||
/* 00460 808B1F40 8E250000 */ lw $a1, 0x0000($s1) ## 00000000
|
||||
/* 00464 808B1F44 24C620AC */ addiu $a2, $a2, %lo(D_808B20AC) ## $a2 = 808B20AC
|
||||
/* 00468 808B1F48 27A4002C */ addiu $a0, $sp, 0x002C ## $a0 = FFFFFFEC
|
||||
/* 0046C 808B1F4C 0C031AD5 */ jal func_800C6B54
|
||||
/* 00470 808B1F50 2407018C */ addiu $a3, $zero, 0x018C ## $a3 = 0000018C
|
||||
.L808B1F54:
|
||||
/* 00474 808B1F54 8FBF001C */ lw $ra, 0x001C($sp)
|
||||
/* 00478 808B1F58 8FB00014 */ lw $s0, 0x0014($sp)
|
||||
/* 0047C 808B1F5C 8FB10018 */ lw $s1, 0x0018($sp)
|
||||
/* 00480 808B1F60 03E00008 */ jr $ra
|
||||
/* 00484 808B1F64 27BD0040 */ addiu $sp, $sp, 0x0040 ## $sp = 00000000
|
||||
/* 00488 808B1F68 00000000 */ nop
|
||||
/* 0048C 808B1F6C 00000000 */ nop
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
glabel BgSpot09Obj_Init
|
||||
/* 002A4 808B1D84 27BDFFE0 */ addiu $sp, $sp, 0xFFE0 ## $sp = FFFFFFE0
|
||||
/* 002A8 808B1D88 AFB00018 */ sw $s0, 0x0018($sp)
|
||||
/* 002AC 808B1D8C 3C068016 */ lui $a2, 0x8016 ## $a2 = 80160000
|
||||
/* 002B0 808B1D90 94C6F546 */ lhu $a2, -0x0ABA($a2) ## 8015F546
|
||||
/* 002B4 808B1D94 00808025 */ or $s0, $a0, $zero ## $s0 = 00000000
|
||||
/* 002B8 808B1D98 AFBF001C */ sw $ra, 0x001C($sp)
|
||||
/* 002BC 808B1D9C AFA50024 */ sw $a1, 0x0024($sp)
|
||||
/* 002C0 808B1DA0 3C04808B */ lui $a0, %hi(D_808B1FE0) ## $a0 = 808B0000
|
||||
/* 002C4 808B1DA4 24841FE0 */ addiu $a0, $a0, %lo(D_808B1FE0) ## $a0 = 808B1FE0
|
||||
/* 002C8 808B1DA8 8605001C */ lh $a1, 0x001C($s0) ## 0000001C
|
||||
/* 002CC 808B1DAC 0C00084C */ jal osSyncPrintf
|
||||
|
||||
/* 002D0 808B1DB0 30C6000F */ andi $a2, $a2, 0x000F ## $a2 = 00000000
|
||||
/* 002D4 808B1DB4 860E001C */ lh $t6, 0x001C($s0) ## 0000001C
|
||||
/* 002D8 808B1DB8 3C04808B */ lui $a0, %hi(D_808B2018) ## $a0 = 808B0000
|
||||
/* 002DC 808B1DBC 3C05808B */ lui $a1, %hi(D_808B2064) ## $a1 = 808B0000
|
||||
/* 002E0 808B1DC0 31CF00FF */ andi $t7, $t6, 0x00FF ## $t7 = 00000000
|
||||
/* 002E4 808B1DC4 A60F001C */ sh $t7, 0x001C($s0) ## 0000001C
|
||||
/* 002E8 808B1DC8 8607001C */ lh $a3, 0x001C($s0) ## 0000001C
|
||||
/* 002EC 808B1DCC 24A52064 */ addiu $a1, $a1, %lo(D_808B2064) ## $a1 = 808B2064
|
||||
/* 002F0 808B1DD0 24842018 */ addiu $a0, $a0, %lo(D_808B2018) ## $a0 = 808B2018
|
||||
/* 002F4 808B1DD4 04E00003 */ bltz $a3, .L808B1DE4
|
||||
/* 002F8 808B1DD8 28E10005 */ slti $at, $a3, 0x0005
|
||||
/* 002FC 808B1DDC 54200004 */ bnel $at, $zero, .L808B1DF0
|
||||
/* 00300 808B1DE0 02002025 */ or $a0, $s0, $zero ## $a0 = 00000000
|
||||
.L808B1DE4:
|
||||
/* 00304 808B1DE4 0C00084C */ jal osSyncPrintf
|
||||
|
||||
/* 00308 808B1DE8 24060142 */ addiu $a2, $zero, 0x0142 ## $a2 = 00000142
|
||||
/* 0030C 808B1DEC 02002025 */ or $a0, $s0, $zero ## $a0 = 00000000
|
||||
.L808B1DF0:
|
||||
/* 00310 808B1DF0 0C22C71C */ jal func_808B1C70
|
||||
/* 00314 808B1DF4 8FA50024 */ lw $a1, 0x0024($sp)
|
||||
/* 00318 808B1DF8 14400005 */ bne $v0, $zero, .L808B1E10
|
||||
/* 0031C 808B1DFC 02002025 */ or $a0, $s0, $zero ## $a0 = 00000000
|
||||
/* 00320 808B1E00 0C00B55C */ jal Actor_Kill
|
||||
|
||||
/* 00324 808B1E04 02002025 */ or $a0, $s0, $zero ## $a0 = 00000000
|
||||
/* 00328 808B1E08 10000008 */ beq $zero, $zero, .L808B1E2C
|
||||
/* 0032C 808B1E0C 8FBF001C */ lw $ra, 0x001C($sp)
|
||||
.L808B1E10:
|
||||
/* 00330 808B1E10 0C22C751 */ jal func_808B1D44
|
||||
/* 00334 808B1E14 8FA50024 */ lw $a1, 0x0024($sp)
|
||||
/* 00338 808B1E18 54400004 */ bnel $v0, $zero, .L808B1E2C
|
||||
/* 0033C 808B1E1C 8FBF001C */ lw $ra, 0x001C($sp)
|
||||
/* 00340 808B1E20 0C00B55C */ jal Actor_Kill
|
||||
|
||||
/* 00344 808B1E24 02002025 */ or $a0, $s0, $zero ## $a0 = 00000000
|
||||
/* 00348 808B1E28 8FBF001C */ lw $ra, 0x001C($sp)
|
||||
.L808B1E2C:
|
||||
/* 0034C 808B1E2C 8FB00018 */ lw $s0, 0x0018($sp)
|
||||
/* 00350 808B1E30 27BD0020 */ addiu $sp, $sp, 0x0020 ## $sp = 00000000
|
||||
/* 00354 808B1E34 03E00008 */ jr $ra
|
||||
/* 00358 808B1E38 00000000 */ nop
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
glabel BgSpot09Obj_Update
|
||||
/* 00394 808B1E74 AFA40000 */ sw $a0, 0x0000($sp)
|
||||
/* 00398 808B1E78 03E00008 */ jr $ra
|
||||
/* 0039C 808B1E7C AFA50004 */ sw $a1, 0x0004($sp)
|
||||
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
glabel func_808B1AE0
|
||||
/* 00000 808B1AE0 3C028016 */ lui $v0, 0x8016 ## $v0 = 80160000
|
||||
/* 00004 808B1AE4 2442E660 */ addiu $v0, $v0, 0xE660 ## $v0 = 8015E660
|
||||
/* 00008 808B1AE8 8C4E1360 */ lw $t6, 0x1360($v0) ## 8015F9C0
|
||||
/* 0000C 808B1AEC AFA50004 */ sw $a1, 0x0004($sp)
|
||||
/* 00010 808B1AF0 29C10004 */ slti $at, $t6, 0x0004
|
||||
/* 00014 808B1AF4 54200005 */ bnel $at, $zero, .L808B1B0C
|
||||
/* 00018 808B1AF8 94430EE6 */ lhu $v1, 0x0EE6($v0) ## 8015F546
|
||||
/* 0001C 808B1AFC 8482001C */ lh $v0, 0x001C($a0) ## 0000001C
|
||||
/* 00020 808B1B00 03E00008 */ jr $ra
|
||||
/* 00024 808B1B04 2C420001 */ sltiu $v0, $v0, 0x0001
|
||||
.L808B1B08:
|
||||
/* 00028 808B1B08 94430EE6 */ lhu $v1, 0x0EE6($v0) ## 8015F546
|
||||
.L808B1B0C:
|
||||
/* 0002C 808B1B0C 8C4F0004 */ lw $t7, 0x0004($v0) ## 8015E664
|
||||
/* 00030 808B1B10 24010011 */ addiu $at, $zero, 0x0011 ## $at = 00000011
|
||||
/* 00034 808B1B14 3063000F */ andi $v1, $v1, 0x000F ## $v1 = 00000000
|
||||
/* 00038 808B1B18 3863000F */ xori $v1, $v1, 0x000F ## $v1 = 0000000F
|
||||
/* 0003C 808B1B1C 11E00003 */ beq $t7, $zero, .L808B1B2C
|
||||
/* 00040 808B1B20 2C630001 */ sltiu $v1, $v1, 0x0001
|
||||
/* 00044 808B1B24 10000002 */ beq $zero, $zero, .L808B1B30
|
||||
/* 00048 808B1B28 24020005 */ addiu $v0, $zero, 0x0005 ## $v0 = 00000005
|
||||
.L808B1B2C:
|
||||
/* 0004C 808B1B2C 24020011 */ addiu $v0, $zero, 0x0011 ## $v0 = 00000011
|
||||
.L808B1B30:
|
||||
/* 00050 808B1B30 54410016 */ bnel $v0, $at, .L808B1B8C
|
||||
/* 00054 808B1B34 8482001C */ lh $v0, 0x001C($a0) ## 0000001C
|
||||
/* 00058 808B1B38 8482001C */ lh $v0, 0x001C($a0) ## 0000001C
|
||||
/* 0005C 808B1B3C 24010001 */ addiu $at, $zero, 0x0001 ## $at = 00000001
|
||||
/* 00060 808B1B40 10400009 */ beq $v0, $zero, .L808B1B68
|
||||
/* 00064 808B1B44 00000000 */ nop
|
||||
/* 00068 808B1B48 10410009 */ beq $v0, $at, .L808B1B70
|
||||
/* 0006C 808B1B4C 24010003 */ addiu $at, $zero, 0x0003 ## $at = 00000003
|
||||
/* 00070 808B1B50 1041000B */ beq $v0, $at, .L808B1B80
|
||||
/* 00074 808B1B54 24010004 */ addiu $at, $zero, 0x0004 ## $at = 00000004
|
||||
/* 00078 808B1B58 10410007 */ beq $v0, $at, .L808B1B78
|
||||
/* 0007C 808B1B5C 00000000 */ nop
|
||||
/* 00080 808B1B60 1000000D */ beq $zero, $zero, .L808B1B98
|
||||
/* 00084 808B1B64 00001025 */ or $v0, $zero, $zero ## $v0 = 00000000
|
||||
.L808B1B68:
|
||||
/* 00088 808B1B68 03E00008 */ jr $ra
|
||||
/* 0008C 808B1B6C 00001025 */ or $v0, $zero, $zero ## $v0 = 00000000
|
||||
.L808B1B70:
|
||||
/* 00090 808B1B70 03E00008 */ jr $ra
|
||||
/* 00094 808B1B74 2C620001 */ sltiu $v0, $v1, 0x0001
|
||||
.L808B1B78:
|
||||
/* 00098 808B1B78 03E00008 */ jr $ra
|
||||
/* 0009C 808B1B7C 00601025 */ or $v0, $v1, $zero ## $v0 = 0000000F
|
||||
.L808B1B80:
|
||||
/* 000A0 808B1B80 03E00008 */ jr $ra
|
||||
/* 000A4 808B1B84 24020001 */ addiu $v0, $zero, 0x0001 ## $v0 = 00000001
|
||||
.L808B1B88:
|
||||
/* 000A8 808B1B88 8482001C */ lh $v0, 0x001C($a0) ## 0000001C
|
||||
.L808B1B8C:
|
||||
/* 000AC 808B1B8C 38420002 */ xori $v0, $v0, 0x0002 ## $v0 = 00000003
|
||||
/* 000B0 808B1B90 03E00008 */ jr $ra
|
||||
/* 000B4 808B1B94 2C420001 */ sltiu $v0, $v0, 0x0001
|
||||
.L808B1B98:
|
||||
/* 000B8 808B1B98 03E00008 */ jr $ra
|
||||
/* 000BC 808B1B9C 00000000 */ nop
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
glabel func_808B1BA0
|
||||
/* 000C0 808B1BA0 27BDFFE8 */ addiu $sp, $sp, 0xFFE8 ## $sp = FFFFFFE8
|
||||
/* 000C4 808B1BA4 AFBF0014 */ sw $ra, 0x0014($sp)
|
||||
/* 000C8 808B1BA8 AFA5001C */ sw $a1, 0x001C($sp)
|
||||
/* 000CC 808B1BAC 848E001C */ lh $t6, 0x001C($a0) ## 0000001C
|
||||
/* 000D0 808B1BB0 24010003 */ addiu $at, $zero, 0x0003 ## $at = 00000003
|
||||
/* 000D4 808B1BB4 3C053DCC */ lui $a1, 0x3DCC ## $a1 = 3DCC0000
|
||||
/* 000D8 808B1BB8 15C10005 */ bne $t6, $at, .L808B1BD0
|
||||
/* 000DC 808B1BBC 00000000 */ nop
|
||||
/* 000E0 808B1BC0 0C00B58B */ jal Actor_SetScale
|
||||
|
||||
/* 000E4 808B1BC4 34A5CCCD */ ori $a1, $a1, 0xCCCD ## $a1 = 3DCCCCCD
|
||||
/* 000E8 808B1BC8 10000004 */ beq $zero, $zero, .L808B1BDC
|
||||
/* 000EC 808B1BCC 8FBF0014 */ lw $ra, 0x0014($sp)
|
||||
.L808B1BD0:
|
||||
/* 000F0 808B1BD0 0C00B58B */ jal Actor_SetScale
|
||||
|
||||
/* 000F4 808B1BD4 3C053F80 */ lui $a1, 0x3F80 ## $a1 = 3F800000
|
||||
/* 000F8 808B1BD8 8FBF0014 */ lw $ra, 0x0014($sp)
|
||||
.L808B1BDC:
|
||||
/* 000FC 808B1BDC 27BD0018 */ addiu $sp, $sp, 0x0018 ## $sp = 00000000
|
||||
/* 00100 808B1BE0 24020001 */ addiu $v0, $zero, 0x0001 ## $v0 = 00000001
|
||||
/* 00104 808B1BE4 03E00008 */ jr $ra
|
||||
/* 00108 808B1BE8 00000000 */ nop
|
||||
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
glabel func_808B1BEC
|
||||
/* 0010C 808B1BEC 27BDFFD0 */ addiu $sp, $sp, 0xFFD0 ## $sp = FFFFFFD0
|
||||
/* 00110 808B1BF0 AFBF001C */ sw $ra, 0x001C($sp)
|
||||
/* 00114 808B1BF4 AFB00018 */ sw $s0, 0x0018($sp)
|
||||
/* 00118 808B1BF8 AFA50034 */ sw $a1, 0x0034($sp)
|
||||
/* 0011C 808B1BFC AFA00028 */ sw $zero, 0x0028($sp)
|
||||
/* 00120 808B1C00 848E001C */ lh $t6, 0x001C($a0) ## 0000001C
|
||||
/* 00124 808B1C04 3C18808B */ lui $t8, %hi(D_808B1F90) ## $t8 = 808B0000
|
||||
/* 00128 808B1C08 00808025 */ or $s0, $a0, $zero ## $s0 = 00000000
|
||||
/* 0012C 808B1C0C 000E7880 */ sll $t7, $t6, 2
|
||||
/* 00130 808B1C10 030FC021 */ addu $t8, $t8, $t7
|
||||
/* 00134 808B1C14 8F181F90 */ lw $t8, %lo(D_808B1F90)($t8)
|
||||
/* 00138 808B1C18 53000011 */ beql $t8, $zero, .L808B1C60
|
||||
/* 0013C 808B1C1C 8FBF001C */ lw $ra, 0x001C($sp)
|
||||
/* 00140 808B1C20 0C010D20 */ jal DynaPolyInfo_SetActorMove
|
||||
|
||||
/* 00144 808B1C24 00002825 */ or $a1, $zero, $zero ## $a1 = 00000000
|
||||
/* 00148 808B1C28 8619001C */ lh $t9, 0x001C($s0) ## 0000001C
|
||||
/* 0014C 808B1C2C 3C04808B */ lui $a0, %hi(D_808B1F90) ## $a0 = 808B0000
|
||||
/* 00150 808B1C30 27A50028 */ addiu $a1, $sp, 0x0028 ## $a1 = FFFFFFF8
|
||||
/* 00154 808B1C34 00194080 */ sll $t0, $t9, 2
|
||||
/* 00158 808B1C38 00882021 */ addu $a0, $a0, $t0
|
||||
/* 0015C 808B1C3C 0C010620 */ jal DynaPolyInfo_Alloc
|
||||
|
||||
/* 00160 808B1C40 8C841F90 */ lw $a0, %lo(D_808B1F90)($a0)
|
||||
/* 00164 808B1C44 8FA40034 */ lw $a0, 0x0034($sp)
|
||||
/* 00168 808B1C48 02003025 */ or $a2, $s0, $zero ## $a2 = 00000000
|
||||
/* 0016C 808B1C4C 8FA70028 */ lw $a3, 0x0028($sp)
|
||||
/* 00170 808B1C50 0C00FA9D */ jal DynaPolyInfo_RegisterActor
|
||||
## DynaPolyInfo_setActor
|
||||
/* 00174 808B1C54 24850810 */ addiu $a1, $a0, 0x0810 ## $a1 = 00000810
|
||||
/* 00178 808B1C58 AE02014C */ sw $v0, 0x014C($s0) ## 0000014C
|
||||
/* 0017C 808B1C5C 8FBF001C */ lw $ra, 0x001C($sp)
|
||||
.L808B1C60:
|
||||
/* 00180 808B1C60 8FB00018 */ lw $s0, 0x0018($sp)
|
||||
/* 00184 808B1C64 27BD0030 */ addiu $sp, $sp, 0x0030 ## $sp = 00000000
|
||||
/* 00188 808B1C68 03E00008 */ jr $ra
|
||||
/* 0018C 808B1C6C 24020001 */ addiu $v0, $zero, 0x0001 ## $v0 = 00000001
|
||||
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
glabel func_808B1C70
|
||||
/* 00190 808B1C70 27BDFFD8 */ addiu $sp, $sp, 0xFFD8 ## $sp = FFFFFFD8
|
||||
/* 00194 808B1C74 AFB30020 */ sw $s3, 0x0020($sp)
|
||||
/* 00198 808B1C78 AFB00014 */ sw $s0, 0x0014($sp)
|
||||
/* 0019C 808B1C7C AFB2001C */ sw $s2, 0x001C($sp)
|
||||
/* 001A0 808B1C80 AFB10018 */ sw $s1, 0x0018($sp)
|
||||
/* 001A4 808B1C84 3C10808B */ lui $s0, %hi(D_808B1FA4) ## $s0 = 808B0000
|
||||
/* 001A8 808B1C88 3C13808B */ lui $s3, %hi(D_808B1FB0) ## $s3 = 808B0000
|
||||
/* 001AC 808B1C8C 00808825 */ or $s1, $a0, $zero ## $s1 = 00000000
|
||||
/* 001B0 808B1C90 00A09025 */ or $s2, $a1, $zero ## $s2 = 00000000
|
||||
/* 001B4 808B1C94 AFBF0024 */ sw $ra, 0x0024($sp)
|
||||
/* 001B8 808B1C98 26731FB0 */ addiu $s3, $s3, %lo(D_808B1FB0) ## $s3 = 808B1FB0
|
||||
/* 001BC 808B1C9C 26101FA4 */ addiu $s0, $s0, %lo(D_808B1FA4) ## $s0 = 808B1FA4
|
||||
/* 001C0 808B1CA0 8E190000 */ lw $t9, 0x0000($s0) ## 808B1FA4
|
||||
.L808B1CA4:
|
||||
/* 001C4 808B1CA4 02202025 */ or $a0, $s1, $zero ## $a0 = 00000000
|
||||
/* 001C8 808B1CA8 02402825 */ or $a1, $s2, $zero ## $a1 = 00000000
|
||||
/* 001CC 808B1CAC 0320F809 */ jalr $ra, $t9
|
||||
/* 001D0 808B1CB0 00000000 */ nop
|
||||
/* 001D4 808B1CB4 14400003 */ bne $v0, $zero, .L808B1CC4
|
||||
/* 001D8 808B1CB8 26100004 */ addiu $s0, $s0, 0x0004 ## $s0 = 808B1FA8
|
||||
/* 001DC 808B1CBC 10000004 */ beq $zero, $zero, .L808B1CD0
|
||||
/* 001E0 808B1CC0 00001025 */ or $v0, $zero, $zero ## $v0 = 00000000
|
||||
.L808B1CC4:
|
||||
/* 001E4 808B1CC4 5613FFF7 */ bnel $s0, $s3, .L808B1CA4
|
||||
/* 001E8 808B1CC8 8E190000 */ lw $t9, 0x0000($s0) ## 808B1FA8
|
||||
/* 001EC 808B1CCC 24020001 */ addiu $v0, $zero, 0x0001 ## $v0 = 00000001
|
||||
.L808B1CD0:
|
||||
/* 001F0 808B1CD0 8FBF0024 */ lw $ra, 0x0024($sp)
|
||||
/* 001F4 808B1CD4 8FB00014 */ lw $s0, 0x0014($sp)
|
||||
/* 001F8 808B1CD8 8FB10018 */ lw $s1, 0x0018($sp)
|
||||
/* 001FC 808B1CDC 8FB2001C */ lw $s2, 0x001C($sp)
|
||||
/* 00200 808B1CE0 8FB30020 */ lw $s3, 0x0020($sp)
|
||||
/* 00204 808B1CE4 03E00008 */ jr $ra
|
||||
/* 00208 808B1CE8 27BD0028 */ addiu $sp, $sp, 0x0028 ## $sp = 00000000
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
glabel func_808B1CEC
|
||||
/* 0020C 808B1CEC 27BDFFE8 */ addiu $sp, $sp, 0xFFE8 ## $sp = FFFFFFE8
|
||||
/* 00210 808B1CF0 AFA5001C */ sw $a1, 0x001C($sp)
|
||||
/* 00214 808B1CF4 AFBF0014 */ sw $ra, 0x0014($sp)
|
||||
/* 00218 808B1CF8 3C05808B */ lui $a1, %hi(D_808B1FB0) ## $a1 = 808B0000
|
||||
/* 0021C 808B1CFC 0C01E037 */ jal Actor_ProcessInitChain
|
||||
|
||||
/* 00220 808B1D00 24A51FB0 */ addiu $a1, $a1, %lo(D_808B1FB0) ## $a1 = 808B1FB0
|
||||
/* 00224 808B1D04 8FBF0014 */ lw $ra, 0x0014($sp)
|
||||
/* 00228 808B1D08 27BD0018 */ addiu $sp, $sp, 0x0018 ## $sp = 00000000
|
||||
/* 0022C 808B1D0C 24020001 */ addiu $v0, $zero, 0x0001 ## $v0 = 00000001
|
||||
/* 00230 808B1D10 03E00008 */ jr $ra
|
||||
/* 00234 808B1D14 00000000 */ nop
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
glabel func_808B1D18
|
||||
/* 00238 808B1D18 27BDFFE8 */ addiu $sp, $sp, 0xFFE8 ## $sp = FFFFFFE8
|
||||
/* 0023C 808B1D1C AFA5001C */ sw $a1, 0x001C($sp)
|
||||
/* 00240 808B1D20 AFBF0014 */ sw $ra, 0x0014($sp)
|
||||
/* 00244 808B1D24 3C05808B */ lui $a1, %hi(D_808B1FBC) ## $a1 = 808B0000
|
||||
/* 00248 808B1D28 0C01E037 */ jal Actor_ProcessInitChain
|
||||
|
||||
/* 0024C 808B1D2C 24A51FBC */ addiu $a1, $a1, %lo(D_808B1FBC) ## $a1 = 808B1FBC
|
||||
/* 00250 808B1D30 8FBF0014 */ lw $ra, 0x0014($sp)
|
||||
/* 00254 808B1D34 27BD0018 */ addiu $sp, $sp, 0x0018 ## $sp = 00000000
|
||||
/* 00258 808B1D38 24020001 */ addiu $v0, $zero, 0x0001 ## $v0 = 00000001
|
||||
/* 0025C 808B1D3C 03E00008 */ jr $ra
|
||||
/* 00260 808B1D40 00000000 */ nop
|
||||
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
glabel func_808B1D44
|
||||
/* 00264 808B1D44 27BDFFE8 */ addiu $sp, $sp, 0xFFE8 ## $sp = FFFFFFE8
|
||||
/* 00268 808B1D48 AFBF0014 */ sw $ra, 0x0014($sp)
|
||||
/* 0026C 808B1D4C 848E001C */ lh $t6, 0x001C($a0) ## 0000001C
|
||||
/* 00270 808B1D50 24010003 */ addiu $at, $zero, 0x0003 ## $at = 00000003
|
||||
/* 00274 808B1D54 15C10005 */ bne $t6, $at, .L808B1D6C
|
||||
/* 00278 808B1D58 00000000 */ nop
|
||||
/* 0027C 808B1D5C 0C22C746 */ jal func_808B1D18
|
||||
/* 00280 808B1D60 00000000 */ nop
|
||||
/* 00284 808B1D64 10000004 */ beq $zero, $zero, .L808B1D78
|
||||
/* 00288 808B1D68 8FBF0014 */ lw $ra, 0x0014($sp)
|
||||
.L808B1D6C:
|
||||
/* 0028C 808B1D6C 0C22C73B */ jal func_808B1CEC
|
||||
/* 00290 808B1D70 00000000 */ nop
|
||||
/* 00294 808B1D74 8FBF0014 */ lw $ra, 0x0014($sp)
|
||||
.L808B1D78:
|
||||
/* 00298 808B1D78 27BD0018 */ addiu $sp, $sp, 0x0018 ## $sp = 00000000
|
||||
/* 0029C 808B1D7C 03E00008 */ jr $ra
|
||||
/* 002A0 808B1D80 00000000 */ nop
|
||||
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
.include "macro.inc"
|
||||
|
||||
# assembler directives
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
.set gp=64 # allow use of 64-bit general purposee registers
|
||||
|
||||
.section .data
|
||||
|
||||
glabel Bg_Spot09_Obj_InitVars
|
||||
.word 0x00B80100, 0x00000000, 0x00AE0000, 0x00000168
|
||||
.word BgSpot09Obj_Init
|
||||
.word BgSpot09Obj_Destroy
|
||||
.word BgSpot09Obj_Update
|
||||
.word BgSpot09Obj_Draw
|
||||
glabel D_808B1F90
|
||||
.word 0x00000000, 0x06005520, 0x0600283C, 0x06008458, 0x06007580
|
||||
glabel D_808B1FA4
|
||||
.word func_808B1BEC
|
||||
.word func_808B1AE0
|
||||
.word func_808B1BA0
|
||||
glabel D_808B1FB0
|
||||
.word 0xB0F41C20, 0xB0F80BB8, 0x30FC1C20
|
||||
glabel D_808B1FBC
|
||||
.word 0xB0F41C20, 0xB0F80320, 0x30FC05DC
|
||||
glabel D_808B1FC8
|
||||
.word 0x06000100, 0x06003970, 0x06001120, 0x06007D40, 0x06006210, 0x00000000
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
.include "macro.inc"
|
||||
|
||||
# assembler directives
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
.set gp=64 # allow use of 64-bit general purposee registers
|
||||
|
||||
.section .rodata
|
||||
glabel D_808B20D0
|
||||
|
||||
.incbin "baserom/ovl_Bg_Spot09_Obj", 0x5F0, 0x000000B0
|
||||
@@ -1,38 +0,0 @@
|
||||
.include "macro.inc"
|
||||
|
||||
# assembler directives
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
.set gp=64 # allow use of 64-bit general purposee registers
|
||||
|
||||
.section .rodata
|
||||
|
||||
glabel D_808B1FE0
|
||||
|
||||
.asciz "Spot09 Object [arg_data : 0x%04x](大工救出フラグ 0x%x)\n"
|
||||
.balign 4
|
||||
|
||||
glabel D_808B2018
|
||||
|
||||
.asciz "Error : Spot 09 object の arg_data が判別出来ない(%s %d)(arg_data 0x%04x)\n"
|
||||
.balign 4
|
||||
|
||||
glabel D_808B2064
|
||||
|
||||
.asciz "../z_bg_spot09_obj.c"
|
||||
.balign 4
|
||||
|
||||
glabel D_808B207C
|
||||
|
||||
.asciz "../z_bg_spot09_obj.c"
|
||||
.balign 4
|
||||
|
||||
glabel D_808B2094
|
||||
|
||||
.asciz "../z_bg_spot09_obj.c"
|
||||
.balign 4
|
||||
|
||||
glabel D_808B20AC
|
||||
.word 0x2E2E2F7A, 0x5F62675F, 0x73706F74, 0x30395F6F, 0x626A2E63, 0x00000000, 0x00000000, 0x00000000, 0x00000000
|
||||
|
||||
|
||||
@@ -16,14 +16,16 @@ def fail(msg):
|
||||
print(msg, file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
MISSING_PREREQUISITES = "Missing prerequisite python module {}. " \
|
||||
"Run `python3 -m pip install --user colorama ansiwrap attrs watchdog python-Levenshtein` to install prerequisites (python-Levenshtein only needed for --algorithm=levenshtein)."
|
||||
|
||||
try:
|
||||
import attr
|
||||
from colorama import Fore, Style, Back
|
||||
import ansiwrap
|
||||
import watchdog
|
||||
except ModuleNotFoundError as e:
|
||||
fail(f"Missing prerequisite python module {e.name}. "
|
||||
"Run `python3 -m pip install --user colorama ansiwrap attrs watchdog` to install prerequisites.")
|
||||
fail(MISSING_PREREQUISITES.format(e.name))
|
||||
|
||||
# Prefer to use diff_settings.py from the current working directory
|
||||
sys.path.insert(0, '.')
|
||||
@@ -66,6 +68,8 @@ parser.add_argument('-w', '--watch', dest='watch', action='store_true',
|
||||
"Recommended in combination with -m.")
|
||||
parser.add_argument('--width', dest='column_width', type=int, default=50,
|
||||
help="Sets the width of the left and right view column.")
|
||||
parser.add_argument('--algorithm', dest='algorithm', default='difflib',
|
||||
choices=['levenshtein', 'difflib'], help="Diff algorithm to use.")
|
||||
|
||||
# Project-specific flags, e.g. different versions/make arguments.
|
||||
if hasattr(diff_settings, "add_custom_arguments"):
|
||||
@@ -106,6 +110,12 @@ FS_WATCH_EXTENSIONS = ['.c', '.h']
|
||||
|
||||
# ==== LOGIC ====
|
||||
|
||||
if args.algorithm == 'levenshtein':
|
||||
try:
|
||||
import Levenshtein
|
||||
except ModuleNotFoundError as e:
|
||||
fail(MISSING_PREREQUISITES.format(e.name))
|
||||
|
||||
binutils_prefix = None
|
||||
|
||||
for binutils_cand in ['mips-linux-gnu-', 'mips64-elf-']:
|
||||
@@ -449,6 +459,32 @@ def color_branch_imms(br1, br2):
|
||||
br2 = f'{Fore.LIGHTBLUE_EX}{br2}{Style.RESET_ALL}'
|
||||
return br1, br2
|
||||
|
||||
def diff_sequences_difflib(seq1, seq2):
|
||||
differ = difflib.SequenceMatcher(a=seq1, b=seq2, autojunk=False)
|
||||
return differ.get_opcodes()
|
||||
|
||||
def diff_sequences(seq1, seq2):
|
||||
if (args.algorithm != 'levenshtein' or len(seq1) * len(seq2) > 4 * 10**8 or
|
||||
len(seq1) + len(seq2) >= 0x110000):
|
||||
return diff_sequences_difflib(seq1, seq2)
|
||||
|
||||
# The Levenshtein library assumes that we compare strings, not lists. Convert.
|
||||
# (Per the check above we know we have fewer than 0x110000 unique elements, so chr() works.)
|
||||
remapping = {}
|
||||
def remap(seq):
|
||||
seq = seq[:]
|
||||
for i in range(len(seq)):
|
||||
val = remapping.get(seq[i])
|
||||
if val is None:
|
||||
val = chr(len(remapping))
|
||||
remapping[seq[i]] = val
|
||||
seq[i] = val
|
||||
return ''.join(seq)
|
||||
|
||||
seq1 = remap(seq1)
|
||||
seq2 = remap(seq2)
|
||||
return Levenshtein.opcodes(seq1, seq2)
|
||||
|
||||
def do_diff(basedump, mydump):
|
||||
asm_lines1 = basedump.split('\n')
|
||||
asm_lines2 = mydump.split('\n')
|
||||
@@ -477,8 +513,7 @@ def do_diff(basedump, mydump):
|
||||
btset.add(bt + ":")
|
||||
sc.color_symbol(bt + ":")
|
||||
|
||||
differ: difflib.SequenceMatcher = difflib.SequenceMatcher(a=mnemonics1, b=mnemonics2, autojunk=False)
|
||||
for (tag, i1, i2, j1, j2) in differ.get_opcodes():
|
||||
for (tag, i1, i2, j1, j2) in diff_sequences(mnemonics1, mnemonics2):
|
||||
lines1 = asm_lines1[i1:i2]
|
||||
lines2 = asm_lines2[j1:j2]
|
||||
|
||||
@@ -791,7 +826,7 @@ def main():
|
||||
display.progress("Building...")
|
||||
ret = run_make(make_target, capture_output=True)
|
||||
if ret.returncode != 0:
|
||||
display.update(ret.stderr.decode() or ret.stdout.decode(), error=True)
|
||||
display.update(ret.stderr.decode('utf-8-sig', 'replace') or ret.stdout.decode('utf-8-sig', 'replace'), error=True)
|
||||
continue
|
||||
mydump = run_objdump(mycmd)
|
||||
display.update(mydump, error=False)
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
FORMAT_OPTS="-i -style=file"
|
||||
TIDY_OPTS="-p . --fix --fix-errors"
|
||||
COMPILER_OPTS="-fno-builtin -std=gnu90 -Iinclude -Isrc -D_LANGUAGE_C"
|
||||
COMPILER_OPTS="-fno-builtin -std=gnu90 -Iinclude -Isrc -D_LANGUAGE_C -DNON_MATCHING"
|
||||
|
||||
shopt -s globstar
|
||||
|
||||
|
||||
@@ -1456,9 +1456,7 @@ endseg
|
||||
beginseg
|
||||
name "ovl_Bg_Spot09_Obj"
|
||||
include "build/src/overlays/actors/ovl_Bg_Spot09_Obj/z_bg_spot09_obj.o"
|
||||
include "build/data/overlays/actors/z_bg_spot09_obj.data.o"
|
||||
include "build/data/overlays/actors/z_bg_spot09_obj.rodata.o"
|
||||
include "build/data/overlays/actors/z_bg_spot09_obj.reloc.o"
|
||||
include "build/src/overlays/actors/ovl_Bg_Spot09_Obj/z_bg_spot09_obj_reloc.o"
|
||||
endseg
|
||||
|
||||
beginseg
|
||||
|
||||
+50
-26
@@ -137,8 +137,9 @@ void Fault_AddClient(FaultClient* client, void* callback, void* param0, void* pa
|
||||
|
||||
end:
|
||||
osSetIntMask(mask);
|
||||
if (alreadyExists)
|
||||
if (alreadyExists) {
|
||||
osSyncPrintf(VT_COL(RED, WHITE) "fault_AddClient: %08x は既にリスト中にある\n" VT_RST, client);
|
||||
}
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/code/fault/Fault_AddClient.s")
|
||||
@@ -270,27 +271,34 @@ u32 Fault_WaitForInputImpl() {
|
||||
|
||||
kDown = curInput->padPressed;
|
||||
|
||||
if (kDown == 0x20)
|
||||
if (kDown == 0x20) {
|
||||
sFaultStructPtr->faultActive = !sFaultStructPtr->faultActive;
|
||||
}
|
||||
|
||||
if (!sFaultStructPtr->faultActive)
|
||||
if (!sFaultStructPtr->faultActive) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (count-- < 1)
|
||||
if (count-- < 1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (kDown == 0x8000 || kDown == 0x100)
|
||||
if (kDown == 0x8000 || kDown == 0x100) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (kDown == 0x200)
|
||||
if (kDown == 0x200) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (kDown == 0x800)
|
||||
if (kDown == 0x800) {
|
||||
FaultDrawer_SetOsSyncPrintfEnabled(true);
|
||||
}
|
||||
|
||||
if (kDown == 0x400)
|
||||
if (kDown == 0x400) {
|
||||
FaultDrawer_SetOsSyncPrintfEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -555,24 +563,28 @@ void Fault_DrawMemDump(u32 pc, u32 sp, u32 unk0, u32 unk1) {
|
||||
s32 off;
|
||||
|
||||
while (true) {
|
||||
if (addr < 0x80000000)
|
||||
if (addr < 0x80000000) {
|
||||
addr = 0x80000000;
|
||||
if (addr > 0x807fff00)
|
||||
}
|
||||
if (addr > 0x807fff00) {
|
||||
addr = 0x807fff00;
|
||||
}
|
||||
|
||||
addr &= ~0xF;
|
||||
Fault_DrawMemDumpPage("Dump", (u32*)addr, 0);
|
||||
count = 600;
|
||||
|
||||
while (sFaultStructPtr->faultActive) {
|
||||
if (count == 0)
|
||||
if (count == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
count--;
|
||||
Fault_Sleep(0x10);
|
||||
Fault_UpdatePadImpl();
|
||||
if (!~(curInput->padPressed | ~0x20))
|
||||
if (!~(curInput->padPressed | ~0x20)) {
|
||||
sFaultStructPtr->faultActive = false;
|
||||
}
|
||||
}
|
||||
|
||||
do {
|
||||
@@ -580,31 +592,42 @@ void Fault_DrawMemDump(u32 pc, u32 sp, u32 unk0, u32 unk1) {
|
||||
Fault_UpdatePadImpl();
|
||||
} while (curInput->padPressed == 0);
|
||||
|
||||
if (!~(curInput->padPressed | ~0x1000))
|
||||
if (!~(curInput->padPressed | ~0x1000)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!~(curInput->raw.pad | ~0x8000))
|
||||
if (!~(curInput->raw.pad | ~0x8000)) {
|
||||
return;
|
||||
}
|
||||
|
||||
off = 0x10;
|
||||
if (!~(curInput->raw.pad | ~0x2000))
|
||||
if (!~(curInput->raw.pad | ~0x2000)) {
|
||||
off = 0x100;
|
||||
if (!~(curInput->raw.pad | ~0x4000))
|
||||
}
|
||||
if (!~(curInput->raw.pad | ~0x4000)) {
|
||||
off <<= 8;
|
||||
if (!~(curInput->raw.pad | ~0x800))
|
||||
}
|
||||
if (!~(curInput->raw.pad | ~0x800)) {
|
||||
addr -= off;
|
||||
if (!~(curInput->raw.pad | ~0x400))
|
||||
}
|
||||
if (!~(curInput->raw.pad | ~0x400)) {
|
||||
addr += off;
|
||||
if (!~(curInput->raw.pad | ~0x8))
|
||||
}
|
||||
if (!~(curInput->raw.pad | ~0x8)) {
|
||||
addr = pc;
|
||||
if (!~(curInput->raw.pad | ~0x4))
|
||||
}
|
||||
if (!~(curInput->raw.pad | ~0x4)) {
|
||||
addr = sp;
|
||||
if (!~(curInput->raw.pad | ~0x2))
|
||||
}
|
||||
if (!~(curInput->raw.pad | ~0x2)) {
|
||||
addr = unk0;
|
||||
if (!~(curInput->raw.pad | ~0x1))
|
||||
}
|
||||
if (!~(curInput->raw.pad | ~0x1)) {
|
||||
addr = unk1;
|
||||
if (!~(curInput->raw.pad | ~0x20))
|
||||
}
|
||||
if (!~(curInput->raw.pad | ~0x20)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
sFaultStructPtr->faultActive = true;
|
||||
@@ -715,15 +738,16 @@ void Fault_ThreadEntry(void* arg) {
|
||||
__osSetFpcCsr(__osGetFpcCsr() & -0xf81);
|
||||
sFaultStructPtr->faultedThread = faultedThread;
|
||||
|
||||
while (!sFaultStructPtr->faultHandlerEnabled)
|
||||
while (!sFaultStructPtr->faultHandlerEnabled) {
|
||||
Fault_Sleep(1000);
|
||||
}
|
||||
|
||||
Fault_Sleep(500);
|
||||
Fault_CommitFB();
|
||||
|
||||
if (sFaultStructPtr->faultActive)
|
||||
if (sFaultStructPtr->faultActive) {
|
||||
Fault_Wait5Seconds();
|
||||
else {
|
||||
} else {
|
||||
Fault_DrawCornerRec(0xF801);
|
||||
Fault_WaitForButtonCombo();
|
||||
}
|
||||
|
||||
+6
-4
@@ -246,22 +246,24 @@ void GfxPrint_PrintCharImpl(GfxPrint* this, u8 c) {
|
||||
if (this->flag & GFXPRINT_FLAG4) {
|
||||
gDPSetPrimColorMod(this->dlist++, 0, 0, 0);
|
||||
|
||||
if (this->flag & GFXPRINT_FLAG64)
|
||||
if (this->flag & GFXPRINT_FLAG64) {
|
||||
gSPTextureRectangle(this->dlist++, (this->posX + 4) << 1, (this->posY + 4) << 1, (this->posX + 4 + 32) << 1,
|
||||
(this->posY + 4 + 32) << 1, c * 2, (u16)(c & 4) * 64, (u16)(c >> 3) * 256, 512, 512);
|
||||
else
|
||||
} else {
|
||||
gSPTextureRectangle(this->dlist++, this->posX + 4, this->posY + 4, this->posX + 4 + 32, this->posY + 4 + 32,
|
||||
c * 2, (u16)(c & 4) * 64, (u16)(c >> 3) * 256, 1024, 1024);
|
||||
}
|
||||
|
||||
gDPSetPrimColorMod(this->dlist++, 0, 0, *(u32*)&this->color);
|
||||
}
|
||||
|
||||
if (this->flag & GFXPRINT_FLAG64)
|
||||
if (this->flag & GFXPRINT_FLAG64) {
|
||||
gSPTextureRectangle(this->dlist++, (this->posX) << 1, (this->posY) << 1, (this->posX + 32) << 1,
|
||||
(this->posY + 32) << 1, c * 2, (u16)(c & 4) * 64, (u16)(c >> 3) * 256, 512, 512);
|
||||
else
|
||||
} else {
|
||||
gSPTextureRectangle(this->dlist++, this->posX, this->posY, this->posX + 32, this->posY + 32, c * 2,
|
||||
(u16)(c & 4) * 64, (u16)(c >> 3) * 256, 1024, 1024);
|
||||
}
|
||||
|
||||
this->posX += 32;
|
||||
}
|
||||
|
||||
+9
-10
@@ -1,14 +1,15 @@
|
||||
#include <global.h>
|
||||
|
||||
volatile u32 sSysCfbFbPtr[2]; // may not be volatile but it currently gets SysCfb_Init closer from matching
|
||||
u32 sSysCfbFbPtr[2];
|
||||
u32 sSysCfbEnd;
|
||||
|
||||
// small reaordering
|
||||
#ifdef NON_MATCHING
|
||||
void SysCfb_Init(s32 n64dd) {
|
||||
u32 screenSize;
|
||||
u32 tmpFbEnd;
|
||||
if (osMemSize >= 0x800000U) {
|
||||
// 8MB or more memory is installed
|
||||
osSyncPrintf("8Mバイト以上のメモリが搭載されています\n");
|
||||
tmpFbEnd = 0x8044BE80;
|
||||
if (n64dd == 1) {
|
||||
// RAM 8M mode (N64DD compatible)
|
||||
osSyncPrintf("RAM 8M mode (N64DD対応)\n");
|
||||
@@ -16,26 +17,24 @@ void SysCfb_Init(s32 n64dd) {
|
||||
} else {
|
||||
// The margin for this version is% dK bytes
|
||||
osSyncPrintf("このバージョンのマージンは %dK バイトです\n", (0x4BC00 / 1024));
|
||||
sSysCfbEnd = 0x8044BE80;
|
||||
sSysCfbEnd = tmpFbEnd;
|
||||
}
|
||||
} else if (osMemSize >= 0x400000U) {
|
||||
sSysCfbEnd = 0x80400000;
|
||||
osSyncPrintf("RAM4M mode\n");
|
||||
sSysCfbEnd = 0x80400000;
|
||||
} else {
|
||||
LogUtils_HungupThread("../sys_cfb.c", 0x162);
|
||||
}
|
||||
|
||||
screenSize = SCREEN_WIDTH * SCREEN_HEIGHT;
|
||||
sSysCfbEnd &= ~0x3f;
|
||||
// The final address used by the system is% 08x
|
||||
osSyncPrintf("システムが使用する最終アドレスは %08x です\n", sSysCfbEnd);
|
||||
sSysCfbFbPtr[0] = sSysCfbEnd - (SCREEN_WIDTH * SCREEN_HEIGHT * 4);
|
||||
sSysCfbFbPtr[1] = sSysCfbEnd - (SCREEN_WIDTH * SCREEN_HEIGHT * 2);
|
||||
sSysCfbFbPtr[0] = sSysCfbEnd - (screenSize * 4);
|
||||
sSysCfbFbPtr[1] = sSysCfbEnd - (screenSize * 2);
|
||||
// Frame buffer addresses are% 08x and% 08x
|
||||
osSyncPrintf("フレームバッファのアドレスは %08x と %08x です\n", sSysCfbFbPtr[0], sSysCfbFbPtr[1]);
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/code/sys_cfb/SysCfb_Init.s")
|
||||
#endif
|
||||
|
||||
void SysCfb_Reset() {
|
||||
sSysCfbFbPtr[0] = 0;
|
||||
|
||||
@@ -738,12 +738,13 @@ void func_800D20CC(MtxF* mf, Vec3s* vec, s32 flag) {
|
||||
|
||||
vec->y = Math_atan2f(mf->zx, mf->zz) * (32768 / M_PI);
|
||||
|
||||
if (!flag)
|
||||
if (!flag) {
|
||||
vec->z = Math_atan2f(mf->xy, mf->yy) * (32768 / M_PI);
|
||||
else
|
||||
} else {
|
||||
vec->z = Math_atan2f(mf->xy / sqrtf(SQ(mf->xx) + SQ(mf->xz) + SQ(mf->xy)),
|
||||
mf->yy / sqrtf(SQ(mf->yx) + SQ(mf->yz) + SQ(mf->yy))) *
|
||||
(32768 / M_PI);
|
||||
}
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/code/sys_matrix/func_800D20CC.s")
|
||||
@@ -762,12 +763,13 @@ void func_800D2264(MtxF* mf, Vec3s* vec, s32 flag) {
|
||||
|
||||
vec->z = Math_atan2f(mf->xy, mf->xx) * (32768 / M_PI);
|
||||
|
||||
if (!flag)
|
||||
if (!flag) {
|
||||
vec->x = Math_atan2f(mf->yz, mf->zz) * (32768 / M_PI);
|
||||
else
|
||||
} else {
|
||||
vec->x = Math_atan2f(mf->yz / sqrtf(SQ(mf->yx) + SQ(mf->yy) + SQ(mf->yz)),
|
||||
mf->zz / sqrtf(SQ(mf->zx) + SQ(mf->zy) + SQ(mf->zz))) *
|
||||
(32768 / M_PI);
|
||||
}
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/code/sys_matrix/func_800D2264.s")
|
||||
|
||||
+28
-16
@@ -156,16 +156,19 @@ void ActorShadow_DrawFunc_Teardrop(Actor* actor, LightMapper* lightMapper, Globa
|
||||
if ((phi_f2 >= -1.0f) && (phi_f2 < 500.0f)) {
|
||||
phi_s0 = lightMapper->lights;
|
||||
|
||||
if (phi_f2 <= 0.0f)
|
||||
if (phi_f2 <= 0.0f) {
|
||||
actor->shape.unk_15++;
|
||||
}
|
||||
|
||||
if (30.0f < phi_f2)
|
||||
if (30.0f < phi_f2) {
|
||||
phi_f2 = 30.0f;
|
||||
}
|
||||
|
||||
temp_f24 = actor->shape.unk_14 * (1.0f - (phi_f2 * (1.0f / 30)));
|
||||
|
||||
if (30.0f < phi_f2)
|
||||
if (30.0f < phi_f2) {
|
||||
phi_f2 = 30.0f;
|
||||
}
|
||||
|
||||
temp_f20_2 = 1.0f - (phi_f2 * (1.0f / 70));
|
||||
temp_f22_2 = (actor->shape.unk_10 * temp_f20_2) * actor->scale.x;
|
||||
@@ -187,8 +190,9 @@ void ActorShadow_DrawFunc_Teardrop(Actor* actor, LightMapper* lightMapper, Globa
|
||||
if (phi_s0->l.dir[1] > 0) {
|
||||
temp_a3 = (ABS(phi_s0->l.dir[1]) * ((phi_s0->l.col[0] + phi_s0->l.col[1]) + phi_s0->l.col[2])) -
|
||||
(phi_s2 * 8);
|
||||
if (temp_a3 > 0)
|
||||
if (temp_a3 > 0) {
|
||||
func_8002B66C(globalCtx, phi_s0, &spE8, temp_a3, temp_f24, temp_f22_2, temp_f20_2);
|
||||
}
|
||||
}
|
||||
phi_s0++;
|
||||
}
|
||||
@@ -335,18 +339,20 @@ void func_8002C124(TargetContext* targetCtx, GlobalContext* globalCtx) {
|
||||
spCE = 0xFF;
|
||||
var1 = 1.0f;
|
||||
|
||||
if (targetCtx->unk_4B != 0)
|
||||
if (targetCtx->unk_4B != 0) {
|
||||
spB8 = 1;
|
||||
else
|
||||
} else {
|
||||
spB8 = 3;
|
||||
}
|
||||
|
||||
if (actor != NULL) {
|
||||
Math_Vec3f_Copy(&targetCtx->targetCenterPos, &actor->posRot2.pos);
|
||||
var1 = (500.0f - targetCtx->unk_44) / 420.0f;
|
||||
} else {
|
||||
targetCtx->unk_48 -= 120;
|
||||
if (targetCtx->unk_48 < 0)
|
||||
if (targetCtx->unk_48 < 0) {
|
||||
targetCtx->unk_48 = 0;
|
||||
}
|
||||
spCE = targetCtx->unk_48;
|
||||
}
|
||||
|
||||
@@ -361,8 +367,9 @@ void func_8002C124(TargetContext* targetCtx, GlobalContext* globalCtx) {
|
||||
spBC.z = spBC.z * var1;
|
||||
|
||||
targetCtx->unk_4C--;
|
||||
if (targetCtx->unk_4C < 0)
|
||||
if (targetCtx->unk_4C < 0) {
|
||||
targetCtx->unk_4C = 2;
|
||||
}
|
||||
|
||||
func_8002BE64(targetCtx, targetCtx->unk_4C, spBC.x, spBC.y, spBC.z);
|
||||
|
||||
@@ -373,10 +380,11 @@ void func_8002C124(TargetContext* targetCtx, GlobalContext* globalCtx) {
|
||||
entry = &targetCtx->arr_50[spAC];
|
||||
|
||||
if (entry->unk_0C < 500.0f) {
|
||||
if (entry->unk_0C <= 120.0f)
|
||||
if (entry->unk_0C <= 120.0f) {
|
||||
var2 = 0.15f;
|
||||
else
|
||||
} else {
|
||||
var2 = ((entry->unk_0C - 120.0f) * 0.001f) + 0.15f;
|
||||
}
|
||||
|
||||
Matrix_Translate(entry->pos.x, entry->pos.y, 0.0f, MTXMODE_NEW);
|
||||
Matrix_Scale(var2, 0.15f, 1.0f, MTXMODE_APPLY);
|
||||
@@ -398,8 +406,9 @@ void func_8002C124(TargetContext* targetCtx, GlobalContext* globalCtx) {
|
||||
}
|
||||
|
||||
spCE = spCE - (0xFF / 3);
|
||||
if (spCE < 0)
|
||||
if (spCE < 0) {
|
||||
spCE = 0;
|
||||
}
|
||||
spAC = (spAC + 1) % 3;
|
||||
}
|
||||
}
|
||||
@@ -1437,14 +1446,16 @@ f32 func_8002EFC0(Actor* actor, Player* player, s16 arg2) {
|
||||
abs_var = ABS(var);
|
||||
|
||||
if (player->unk_664 != NULL) {
|
||||
if ((abs_var > 0x4000) || (actor->flags & 0x8000000))
|
||||
if ((abs_var > 0x4000) || (actor->flags & 0x8000000)) {
|
||||
return FLT_MAX;
|
||||
else
|
||||
} else {
|
||||
return actor->waterSurfaceDist - actor->waterSurfaceDist * 0.8f * ((0x4000 - abs_var) * 3.0517578125e-05f);
|
||||
}
|
||||
}
|
||||
|
||||
if (abs_var > 0x2AAA)
|
||||
if (abs_var > 0x2AAA) {
|
||||
return FLT_MAX;
|
||||
}
|
||||
|
||||
return actor->waterSurfaceDist;
|
||||
}
|
||||
@@ -1822,10 +1833,11 @@ void func_8002FBAC(GlobalContext* globalCtx) {
|
||||
func_800C6AC4(gfxArr, globalCtx->state.gfxCtx, "../z_actor.c", 5308);
|
||||
|
||||
if (gSaveContext.respawn[RESPAWN_MODE_TOP].data != 0) {
|
||||
if (LINK_IS_ADULT)
|
||||
if (LINK_IS_ADULT) {
|
||||
spD8 = 80.0f;
|
||||
else
|
||||
} else {
|
||||
spD8 = 60.0f;
|
||||
}
|
||||
|
||||
spD0 = 0xFF;
|
||||
spD4 = 1.0f;
|
||||
|
||||
+8
-5
@@ -224,8 +224,9 @@ s32 func_800443A0(Camera* camera, Vec3f* b, Vec3f* c) {
|
||||
|
||||
sp34 = NULL; // this is moved to the top when it should be done in the middle of the function args being loaded
|
||||
if (func_8003DD6C(&camera->globalCtx->colCtx, b, c, &sp40, &sp34, 1, 1, 1, 0, &sp38) != 0) {
|
||||
if (func_80038B7C(sp34, b) < 0.0f)
|
||||
if (func_80038B7C(sp34, b) < 0.0f) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -461,18 +462,20 @@ s32 func_800458D4(Camera* camera, struct_80045714* b, f32 c, f32* d, s16 e) {
|
||||
sp60.z = 0.0f;
|
||||
|
||||
temp_s1 = &camera->unk_94;
|
||||
if (e != 0)
|
||||
if (e != 0) {
|
||||
sp60.y -= func_80045714(&camera->unk_108, temp_s1->rot.y, b->unk_06, OREG(9));
|
||||
}
|
||||
|
||||
sp48 = temp_s1->pos.y - *d;
|
||||
temp_ret = Math_atan2f(sp48, func_8007C028(&camera->unk_50, &camera->unk_5C)); // f2 and f14 are swapped
|
||||
|
||||
if (OREG(32) * (M_PI / 180) < temp_ret)
|
||||
if (OREG(32) * (M_PI / 180) < temp_ret) {
|
||||
phi_f2 = 1.0f - sinf(temp_ret - OREG(32) * (M_PI / 180));
|
||||
else if (OREG(33) * (M_PI / 180) > temp_ret)
|
||||
} else if (OREG(33) * (M_PI / 180) > temp_ret) {
|
||||
phi_f2 = 1.0f - sinf(OREG(33) * (M_PI / 180) - temp_ret);
|
||||
else
|
||||
} else {
|
||||
phi_f2 = 1.0f;
|
||||
}
|
||||
|
||||
sp60.y -= sp48 * phi_f2;
|
||||
func_80043A3C(&sp60, &camera->unk_E4, OREG(29) * 0.01f, OREG(30) * 0.01f, 0.1f);
|
||||
|
||||
+29
-18
@@ -44,8 +44,9 @@ void func_801109B0(GlobalContext* globalCtx) {
|
||||
|
||||
osSyncPrintf("parameter->parameterSegment=%x", interfaceCtx->parameterSegment);
|
||||
|
||||
if (interfaceCtx->parameterSegment == NULL)
|
||||
if (interfaceCtx->parameterSegment == NULL) {
|
||||
__assert("parameter->parameterSegment != NULL", "../z_construct.c", 161);
|
||||
}
|
||||
|
||||
DmaMgr_SendRequest1(interfaceCtx->parameterSegment, parameterStart, parameterSize, "../z_construct.c", 162);
|
||||
|
||||
@@ -55,27 +56,30 @@ void func_801109B0(GlobalContext* globalCtx) {
|
||||
osSyncPrintf("DOアクション テクスチャ初期=%x\n", 0x480);
|
||||
osSyncPrintf("parameter->do_actionSegment=%x", interfaceCtx->do_actionSegment);
|
||||
|
||||
if (interfaceCtx->do_actionSegment == NULL)
|
||||
if (interfaceCtx->do_actionSegment == NULL) {
|
||||
__assert("parameter->do_actionSegment != NULL", "../z_construct.c", 169);
|
||||
}
|
||||
|
||||
do_actionStart = _do_action_staticSegmentRomStart;
|
||||
|
||||
if (gSaveContext.language == 0)
|
||||
if (gSaveContext.language == 0) {
|
||||
do_actionOffset = 0;
|
||||
else if (gSaveContext.language == 1)
|
||||
} else if (gSaveContext.language == 1) {
|
||||
do_actionOffset = 0x2B80;
|
||||
else
|
||||
} else {
|
||||
do_actionOffset = 0x5700;
|
||||
}
|
||||
|
||||
DmaMgr_SendRequest1(interfaceCtx->do_actionSegment, do_actionStart + do_actionOffset, 0x300, "../z_construct.c",
|
||||
174);
|
||||
|
||||
if (gSaveContext.language == 0)
|
||||
if (gSaveContext.language == 0) {
|
||||
do_actionOffset = 0x480;
|
||||
else if (gSaveContext.language == 1)
|
||||
} else if (gSaveContext.language == 1) {
|
||||
do_actionOffset = 0x3000;
|
||||
else
|
||||
} else {
|
||||
do_actionOffset = 0x5B80;
|
||||
}
|
||||
|
||||
DmaMgr_SendRequest1((void*)((u32)interfaceCtx->do_actionSegment + 0x300), do_actionStart + do_actionOffset, 0x180,
|
||||
"../z_construct.c", 178);
|
||||
@@ -86,36 +90,41 @@ void func_801109B0(GlobalContext* globalCtx) {
|
||||
osSyncPrintf("アイコンアイテム テクスチャ初期=%x\n", 0x4000);
|
||||
osSyncPrintf("parameter->icon_itemSegment=%x\n", interfaceCtx->icon_itemSegment);
|
||||
|
||||
if (interfaceCtx->icon_itemSegment == NULL)
|
||||
if (interfaceCtx->icon_itemSegment == NULL) {
|
||||
__assert("parameter->icon_itemSegment != NULL", "../z_construct.c", 193);
|
||||
}
|
||||
|
||||
osSyncPrintf("Register_Item[%x, %x, %x, %x]\n", gSaveContext.equips.button_items[0],
|
||||
gSaveContext.equips.button_items[1], gSaveContext.equips.button_items[2],
|
||||
gSaveContext.equips.button_items[3]);
|
||||
|
||||
if (gSaveContext.equips.button_items[0] < 0xF0)
|
||||
if (gSaveContext.equips.button_items[0] < 0xF0) {
|
||||
DmaMgr_SendRequest1(interfaceCtx->icon_itemSegment,
|
||||
_icon_item_staticSegmentRomStart + gSaveContext.equips.button_items[0] * 0x80, 0x1000,
|
||||
"../z_construct.c", 198);
|
||||
else if (gSaveContext.equips.button_items[0] != 0xFF)
|
||||
} else if (gSaveContext.equips.button_items[0] != 0xFF) {
|
||||
DmaMgr_SendRequest1(interfaceCtx->icon_itemSegment,
|
||||
_icon_item_staticSegmentRomStart + gSaveContext.equips.button_items[0] * 0x80, 0x1000,
|
||||
"../z_construct.c", 203);
|
||||
}
|
||||
|
||||
if (gSaveContext.equips.button_items[1] < 0xF0)
|
||||
if (gSaveContext.equips.button_items[1] < 0xF0) {
|
||||
DmaMgr_SendRequest1((void*)((u32)interfaceCtx->icon_itemSegment + 0x1000),
|
||||
_icon_item_staticSegmentRomStart + gSaveContext.equips.button_items[1] * 0x80, 0x1000,
|
||||
"../z_construct.c", 209);
|
||||
}
|
||||
|
||||
if (gSaveContext.equips.button_items[2] < 0xF0)
|
||||
if (gSaveContext.equips.button_items[2] < 0xF0) {
|
||||
DmaMgr_SendRequest1((void*)((u32)interfaceCtx->icon_itemSegment + 0x2000),
|
||||
_icon_item_staticSegmentRomStart + gSaveContext.equips.button_items[2] * 0x80, 0x1000,
|
||||
"../z_construct.c", 214);
|
||||
}
|
||||
|
||||
if (gSaveContext.equips.button_items[3] < 0xF0)
|
||||
if (gSaveContext.equips.button_items[3] < 0xF0) {
|
||||
DmaMgr_SendRequest1((void*)((u32)interfaceCtx->icon_itemSegment + 0x3000),
|
||||
_icon_item_staticSegmentRomStart + gSaveContext.equips.button_items[3] * 0x80, 0x1000,
|
||||
"../z_construct.c", 219);
|
||||
}
|
||||
|
||||
osSyncPrintf("EVENT=%d\n", gSaveContext.timer_1_state);
|
||||
|
||||
@@ -131,17 +140,19 @@ void func_801109B0(GlobalContext* globalCtx) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((gSaveContext.timer_1_state == 4) || (gSaveContext.timer_1_state == 8))
|
||||
if ((gSaveContext.timer_1_state == 4) || (gSaveContext.timer_1_state == 8)) {
|
||||
temp = 0;
|
||||
else
|
||||
} else {
|
||||
temp = 1;
|
||||
}
|
||||
|
||||
gSaveContext.timer_x[temp] = 26;
|
||||
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
gSaveContext.timer_y[temp] = 54;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_y[temp] = 46;
|
||||
}
|
||||
}
|
||||
|
||||
if ((gSaveContext.timer_1_state >= 11) && (gSaveContext.timer_1_state < 16)) {
|
||||
|
||||
+42
-23
@@ -114,8 +114,9 @@ void func_800645A0(GlobalContext* globalCtx, CutsceneContext* csCtx) {
|
||||
gSaveContext.cutscene_trigger = 1;
|
||||
}
|
||||
|
||||
if ((gSaveContext.cutscene_trigger != 0) && (globalCtx->sceneLoadFlag == 0x14))
|
||||
if ((gSaveContext.cutscene_trigger != 0) && (globalCtx->sceneLoadFlag == 0x14)) {
|
||||
gSaveContext.cutscene_trigger = 0;
|
||||
}
|
||||
|
||||
if ((gSaveContext.cutscene_trigger != 0) && (csCtx->state == CS_STATE_IDLE)) {
|
||||
// Translates to: "CUTSCENE START REQUEST ANNOUNCEMENT!"
|
||||
@@ -172,13 +173,15 @@ void func_80064824(GlobalContext* globalCtx, CutsceneContext* csCtx, CsCmdBase*
|
||||
|
||||
sp3F = 0;
|
||||
|
||||
if ((csCtx->frames < cmd->startFrame) || (csCtx->frames >= cmd->endFrame) && (cmd->endFrame != cmd->startFrame))
|
||||
if ((csCtx->frames < cmd->startFrame) || (csCtx->frames >= cmd->endFrame) && (cmd->endFrame != cmd->startFrame)) {
|
||||
return;
|
||||
}
|
||||
|
||||
temp = func_8006F93C(cmd->endFrame - 1, cmd->startFrame, csCtx->frames);
|
||||
|
||||
if (csCtx->frames == cmd->startFrame)
|
||||
if (csCtx->frames == cmd->startFrame) {
|
||||
sp3F = 1;
|
||||
}
|
||||
|
||||
switch (cmd->base) {
|
||||
case 1:
|
||||
@@ -198,13 +201,15 @@ void func_80064824(GlobalContext* globalCtx, CutsceneContext* csCtx, CsCmdBase*
|
||||
case 3:
|
||||
if (sp3F != 0) {
|
||||
func_8006C3D0(globalCtx, 0);
|
||||
if (gSaveContext.entrance_index == 0x0053)
|
||||
if (gSaveContext.entrance_index == 0x0053) {
|
||||
func_8006C3D0(globalCtx, 2);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
if (globalCtx->unk_10AC4 < 0x3200)
|
||||
if (globalCtx->unk_10AC4 < 0x3200) {
|
||||
globalCtx->unk_10AC4 += 0x23;
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
if (sp3F != 0) {
|
||||
@@ -219,8 +224,9 @@ void func_80064824(GlobalContext* globalCtx, CutsceneContext* csCtx, CsCmdBase*
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
if (globalCtx->unk_11D30[0] < 0x80)
|
||||
if (globalCtx->unk_11D30[0] < 0x80) {
|
||||
globalCtx->unk_11D30[0] += 4;
|
||||
}
|
||||
break;
|
||||
case 9:
|
||||
globalCtx->unk_10B12[3] = 0x10;
|
||||
@@ -229,33 +235,40 @@ void func_80064824(GlobalContext* globalCtx, CutsceneContext* csCtx, CsCmdBase*
|
||||
func_8006C3D0(globalCtx, 1);
|
||||
break;
|
||||
case 11:
|
||||
if (globalCtx->unk_11D30[0] < 0x672)
|
||||
if (globalCtx->unk_11D30[0] < 0x672) {
|
||||
globalCtx->unk_11D30[0] += 0x14;
|
||||
if (csCtx->frames == 0x30F)
|
||||
}
|
||||
if (csCtx->frames == 0x30F) {
|
||||
func_80078884(NA_SE_EV_DEKU_DEATH);
|
||||
else if (csCtx->frames == 0x2CD)
|
||||
} else if (csCtx->frames == 0x2CD) {
|
||||
globalCtx->unk_11D30[0] = 0;
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
if (sp3F != 0) {
|
||||
if (csCtx->state != CS_STATE_UNSKIPPABLE_EXEC)
|
||||
if (csCtx->state != CS_STATE_UNSKIPPABLE_EXEC) {
|
||||
csCtx->state = CS_STATE_UNSKIPPABLE_INIT;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 13:
|
||||
if (globalCtx->unk_11D30[1] == 0)
|
||||
if (globalCtx->unk_11D30[1] == 0) {
|
||||
func_80078884(NA_SE_EV_TRIFORCE_FLASH);
|
||||
if (globalCtx->unk_11D30[1] < 0xFF)
|
||||
}
|
||||
if (globalCtx->unk_11D30[1] < 0xFF) {
|
||||
globalCtx->unk_11D30[1] += 5;
|
||||
}
|
||||
break;
|
||||
case 14:
|
||||
if (sp3F != 0)
|
||||
if (sp3F != 0) {
|
||||
func_800BC490(globalCtx, 1);
|
||||
}
|
||||
break;
|
||||
case 15:
|
||||
if (sp3F != 0)
|
||||
if (sp3F != 0) {
|
||||
TitleCard_InitPlaceName(globalCtx, &globalCtx->actorCtx.titleCtx, player->unk_1B0, 0xA0, 0x78, 0x90,
|
||||
0x18, 0x14);
|
||||
}
|
||||
break;
|
||||
case 16:
|
||||
if (sp3F != 0) {
|
||||
@@ -266,14 +279,16 @@ void func_80064824(GlobalContext* globalCtx, CutsceneContext* csCtx, CsCmdBase*
|
||||
}
|
||||
break;
|
||||
case 17:
|
||||
if (sp3F != 0)
|
||||
if (sp3F != 0) {
|
||||
func_80092FAC(D_8015FCCA);
|
||||
}
|
||||
break;
|
||||
case 18:
|
||||
globalCtx->unk_10B12[0] = 0;
|
||||
globalCtx->gloomySkyEvent = 2;
|
||||
if (gSaveContext.day_time < 0x4AAB)
|
||||
if (gSaveContext.day_time < 0x4AAB) {
|
||||
gSaveContext.day_time += 30;
|
||||
}
|
||||
if (globalCtx->unk_10B12[1] == 0) {
|
||||
D_8011FB30 = 0;
|
||||
func_800F6D58(14, 1, 0);
|
||||
@@ -305,17 +320,19 @@ void func_80064824(GlobalContext* globalCtx, CutsceneContext* csCtx, CsCmdBase*
|
||||
break;
|
||||
case 25:
|
||||
gSaveContext.day_time += 30;
|
||||
if ((gSaveContext.day_time & 0xFFFF) > 0xCAAA)
|
||||
if ((gSaveContext.day_time & 0xFFFF) > 0xCAAA) {
|
||||
gSaveContext.day_time = 0xCAAA;
|
||||
}
|
||||
break;
|
||||
case 26:
|
||||
if ((gSaveContext.day_time < 0x3000) || (gSaveContext.day_time >= 0x4555)) {
|
||||
if ((gSaveContext.day_time >= 0x4555) && (gSaveContext.day_time < 0xAAAB))
|
||||
if ((gSaveContext.day_time >= 0x4555) && (gSaveContext.day_time < 0xAAAB)) {
|
||||
globalCtx->unk_10AE3 = 1;
|
||||
else if ((gSaveContext.day_time >= 0xAAAB) && (gSaveContext.day_time < 0xC556))
|
||||
} else if ((gSaveContext.day_time >= 0xAAAB) && (gSaveContext.day_time < 0xC556)) {
|
||||
globalCtx->unk_10AE3 = 2;
|
||||
else
|
||||
} else {
|
||||
globalCtx->unk_10AE3 = 3;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 27:
|
||||
@@ -346,18 +363,20 @@ void func_80064824(GlobalContext* globalCtx, CutsceneContext* csCtx, CsCmdBase*
|
||||
func_8006C3D0(globalCtx, 4);
|
||||
break;
|
||||
case 32:
|
||||
if (sp3F != 0)
|
||||
if (sp3F != 0) {
|
||||
globalCtx->unk_10B0A = 1;
|
||||
}
|
||||
func_800788CC(0x20C0);
|
||||
break;
|
||||
case 33:
|
||||
gSaveContext.unk_1422 = 1;
|
||||
break;
|
||||
case 34:
|
||||
if (!gSaveContext.night_flag)
|
||||
if (!gSaveContext.night_flag) {
|
||||
gSaveContext.day_time -= D_8011FB40;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.day_time -= D_8011FB40 * 2;
|
||||
}
|
||||
break;
|
||||
case 35:
|
||||
func_800EE824(csCtx);
|
||||
|
||||
@@ -94,8 +94,9 @@ void En_A_Obj_Init(ActorEnAObj* this, GlobalContext* globalCtx) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (this->actor.params >= 9)
|
||||
if (this->actor.params >= 9) {
|
||||
sp28 = 12.0f;
|
||||
}
|
||||
|
||||
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawFunc_Circle, sp28);
|
||||
|
||||
@@ -154,8 +155,9 @@ void En_A_Obj_Init(ActorEnAObj* this, GlobalContext* globalCtx) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (this->actor.params < 5)
|
||||
if (this->actor.params < 5) {
|
||||
this->actor.sub_98.mass = 0xFF;
|
||||
}
|
||||
|
||||
if (this->dynaPolyId != -1) {
|
||||
DynaPolyInfo_Alloc(D_8011546C[this->dynaPolyId], &sp34);
|
||||
|
||||
+19
-10
@@ -289,8 +289,9 @@ void En_Item00_Init(ActorEnItem00* this, GlobalContext* globalCtx) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ((sp2C != 0) && !func_8002F410(&this->actor, globalCtx))
|
||||
if ((sp2C != 0) && !func_8002F410(&this->actor, globalCtx)) {
|
||||
func_8002F554(&this->actor, globalCtx, sp2C);
|
||||
}
|
||||
|
||||
En_Item00_SetNewUpdate(this, (ActorFunc)func_8001E5C8);
|
||||
this->updateFunc(this, globalCtx);
|
||||
@@ -480,11 +481,13 @@ void En_Item00_Update(ActorEnItem00* this, GlobalContext* globalCtx) {
|
||||
sp3C = 0;
|
||||
sp3A = 0;
|
||||
|
||||
if (this->unk_15A > 0)
|
||||
if (this->unk_15A > 0) {
|
||||
this->unk_15A--;
|
||||
}
|
||||
|
||||
if ((this->unk_15A > 0) && (this->unk_15A < 41) && (this->unk_154 <= 0))
|
||||
if ((this->unk_15A > 0) && (this->unk_15A < 41) && (this->unk_154 <= 0)) {
|
||||
this->unk_156 = this->unk_15A;
|
||||
}
|
||||
|
||||
this->updateFunc(this, globalCtx);
|
||||
|
||||
@@ -533,23 +536,28 @@ void En_Item00_Update(ActorEnItem00* this, GlobalContext* globalCtx) {
|
||||
(this->actor.params == DROP_TUNIC_ZORA) || (this->actor.params == DROP_TUNIC_GORON)) {
|
||||
f32 newUnkBC = Math_Coss(this->actor.shape.rot.x) * 37.0f;
|
||||
this->actor.shape.unk_08 = newUnkBC;
|
||||
if (newUnkBC >= 0.0f)
|
||||
if (newUnkBC >= 0.0f) {
|
||||
this->actor.shape.unk_08 = this->actor.shape.unk_08;
|
||||
else
|
||||
} else {
|
||||
this->actor.shape.unk_08 = -this->actor.shape.unk_08;
|
||||
}
|
||||
}
|
||||
|
||||
if (this->unk_154 > 0)
|
||||
if (this->unk_154 > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
// MISMATCH: The first function argument is loaded too early here
|
||||
if (!((this->actor.xzDistanceFromLink <= 30.0f) && (this->actor.yDistanceFromLink >= -50.0f) &&
|
||||
(this->actor.yDistanceFromLink <= 50.0f)))
|
||||
if (!func_8002F410(&this->actor, globalCtx))
|
||||
(this->actor.yDistanceFromLink <= 50.0f))) {
|
||||
if (!func_8002F410(&this->actor, globalCtx)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (globalCtx->unk_10A20 != 0)
|
||||
if (globalCtx->unk_10A20 != 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (this->actor.params) {
|
||||
case DROP_RUPEE_GREEN:
|
||||
@@ -630,8 +638,9 @@ void En_Item00_Update(ActorEnItem00* this, GlobalContext* globalCtx) {
|
||||
}
|
||||
|
||||
// MISMATCH: The first function argument is also loaded too early here
|
||||
if ((sp3C != 0) && !func_8002F410(&this->actor, globalCtx))
|
||||
if ((sp3C != 0) && !func_8002F410(&this->actor, globalCtx)) {
|
||||
func_8002F554(&this->actor, globalCtx, sp3C);
|
||||
}
|
||||
|
||||
switch (this->actor.params) {
|
||||
case DROP_HEART_PIECE:
|
||||
|
||||
+17
-10
@@ -159,19 +159,21 @@ void func_8006D684(GlobalContext* globalCtx, Player* player) {
|
||||
{ 0xF6F7, 0x0139, 0x1766 },
|
||||
};
|
||||
|
||||
if (gSaveContext.entrance_index == 0x028A)
|
||||
if (gSaveContext.entrance_index == 0x028A) {
|
||||
spawnPos = spawnPositions[0];
|
||||
else if (gSaveContext.entrance_index == 0x028E)
|
||||
} else if (gSaveContext.entrance_index == 0x028E) {
|
||||
spawnPos = spawnPositions[1];
|
||||
else if (gSaveContext.entrance_index == 0x0292)
|
||||
} else if (gSaveContext.entrance_index == 0x0292) {
|
||||
spawnPos = spawnPositions[2];
|
||||
else
|
||||
} else {
|
||||
spawnPos = spawnPositions[3];
|
||||
}
|
||||
|
||||
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, spawnPos.x, spawnPos.y,
|
||||
spawnPos.z, 0, player->actor.posRot.rot.y, 0, 7);
|
||||
if (player->rideActor == NULL)
|
||||
if (player->rideActor == NULL) {
|
||||
__assert("player->ride.actor != NULL", "../z_horse.c", 561);
|
||||
}
|
||||
|
||||
func_8002DECC(globalCtx, player, player->rideActor);
|
||||
func_8002DE74(globalCtx, player);
|
||||
@@ -180,15 +182,17 @@ void func_8006D684(GlobalContext* globalCtx, Player* player) {
|
||||
(Flags_GetEventChkInf(0x18) == 0) && (DREG(1) == 0)) {
|
||||
player->rideActor =
|
||||
Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE, 894.0f, 0.0f, -2084.0f, 0, -0x7FFF, 0, 5);
|
||||
if (player->rideActor == NULL)
|
||||
if (player->rideActor == NULL) {
|
||||
__assert("player->ride.actor != NULL", "../z_horse.c", 582);
|
||||
}
|
||||
|
||||
func_8002DECC(globalCtx, player, player->rideActor);
|
||||
func_8002DE74(globalCtx, player);
|
||||
gSaveContext.horse_data.scene = globalCtx->sceneNum;
|
||||
|
||||
if (globalCtx->sceneNum == SCENE_SPOT12)
|
||||
if (globalCtx->sceneNum == SCENE_SPOT12) {
|
||||
player->rideActor->room = -1;
|
||||
}
|
||||
} else {
|
||||
static struct_8011F9B8 D_8011F9B8[] = {
|
||||
{ 93, 0xFFF0, 0x0E10, 0x0585, 0x0168, 0x8001, 8 }, { 99, 0xFFF0, 0xFF06, 0x0001, 0xF9D4, 0x4000, 6 },
|
||||
@@ -210,8 +214,9 @@ void func_8006D684(GlobalContext* globalCtx, Player* player) {
|
||||
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE,
|
||||
D_8011F9B8[i].pos.x, D_8011F9B8[i].pos.y, D_8011F9B8[i].pos.z, 0,
|
||||
player->actor.posRot.rot.y, 0, D_8011F9B8[i].type);
|
||||
if (player->rideActor == NULL)
|
||||
if (player->rideActor == NULL) {
|
||||
__assert("player->ride.actor != NULL", "../z_horse.c", 628);
|
||||
}
|
||||
|
||||
func_8002DECC(globalCtx, player, player->rideActor);
|
||||
func_8002DE74(globalCtx, player);
|
||||
@@ -221,14 +226,16 @@ void func_8006D684(GlobalContext* globalCtx, Player* player) {
|
||||
s32 pad2;
|
||||
|
||||
temp = 0;
|
||||
if (((gSaveContext.event_inf[0] & 0x10) >> 4) && D_8011F9B8[i].type == 6)
|
||||
if (((gSaveContext.event_inf[0] & 0x10) >> 4) && D_8011F9B8[i].type == 6) {
|
||||
temp = 0x8000;
|
||||
}
|
||||
|
||||
player->rideActor = Actor_Spawn(&globalCtx->actorCtx, globalCtx, ACTOR_EN_HORSE,
|
||||
D_8011F9B8[i].pos.x, D_8011F9B8[i].pos.y, D_8011F9B8[i].pos.z, 0,
|
||||
D_8011F9B8[i].angle, 0, D_8011F9B8[i].type | temp);
|
||||
if (player->rideActor == NULL)
|
||||
if (player->rideActor == NULL) {
|
||||
__assert("player->ride.actor != NULL", "../z_horse.c", 667);
|
||||
}
|
||||
|
||||
player->actor.posRot.pos.x = D_8011F9B8[i].pos.x;
|
||||
player->actor.posRot.pos.y = D_8011F9B8[i].pos.y;
|
||||
|
||||
@@ -75,8 +75,9 @@ void KaleidoScopeCall_Update(GlobalContext* globalCtx) {
|
||||
pauseCtx->state++;
|
||||
} else if (pauseCtx->state == 2 || pauseCtx->state == 9) {
|
||||
osSyncPrintf("R_PAUSE_MENU_MODE=%d\n", R_PAUSE_MENU_MODE);
|
||||
if (R_PAUSE_MENU_MODE >= 3)
|
||||
if (R_PAUSE_MENU_MODE >= 3) {
|
||||
pauseCtx->state++;
|
||||
}
|
||||
} else if (pauseCtx->state != 0) {
|
||||
if (&gKaleidoMgrOverlayTable[KALEIDO_OVL_KALEIDO_SCOPE] != gKaleidoMgrCurOvl) {
|
||||
if (gKaleidoMgrCurOvl) {
|
||||
|
||||
+225
-131
@@ -1141,13 +1141,15 @@ void Inventory_SwapAgeEquipment(void) {
|
||||
|
||||
if (LINK_AGE_IN_YEARS == YEARS_CHILD) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
if (i != 0)
|
||||
if (i != 0) {
|
||||
gSaveContext.child_equips.button_items[i] = gSaveContext.equips.button_items[i];
|
||||
else
|
||||
} else {
|
||||
gSaveContext.child_equips.button_items[i] = ITEM_SWORD_KOKIRI;
|
||||
}
|
||||
|
||||
if (i != 0)
|
||||
if (i != 0) {
|
||||
gSaveContext.child_equips.c_button_slots[i - 1] = gSaveContext.equips.c_button_slots[i - 1];
|
||||
}
|
||||
}
|
||||
|
||||
gSaveContext.child_equips.equipment = gSaveContext.equips.equipment;
|
||||
@@ -1172,8 +1174,9 @@ void Inventory_SwapAgeEquipment(void) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
gSaveContext.equips.button_items[i] = gSaveContext.adult_equips.button_items[i];
|
||||
|
||||
if (i != 0)
|
||||
if (i != 0) {
|
||||
gSaveContext.equips.c_button_slots[i - 1] = gSaveContext.adult_equips.c_button_slots[i - 1];
|
||||
}
|
||||
|
||||
if (((gSaveContext.equips.button_items[i] >= ITEM_BOTTLE) &&
|
||||
(gSaveContext.equips.button_items[i] <= ITEM_POE)) ||
|
||||
@@ -1190,8 +1193,9 @@ void Inventory_SwapAgeEquipment(void) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
gSaveContext.adult_equips.button_items[i] = gSaveContext.equips.button_items[i];
|
||||
|
||||
if (i != 0)
|
||||
if (i != 0) {
|
||||
gSaveContext.adult_equips.c_button_slots[i - 1] = gSaveContext.equips.c_button_slots[i - 1];
|
||||
}
|
||||
}
|
||||
|
||||
gSaveContext.adult_equips.equipment = gSaveContext.equips.equipment;
|
||||
@@ -1200,8 +1204,9 @@ void Inventory_SwapAgeEquipment(void) {
|
||||
for (i = 0; i < 4; i++) {
|
||||
gSaveContext.equips.button_items[i] = gSaveContext.child_equips.button_items[i];
|
||||
|
||||
if (i != 0)
|
||||
if (i != 0) {
|
||||
gSaveContext.equips.c_button_slots[i - 1] = gSaveContext.child_equips.c_button_slots[i - 1];
|
||||
}
|
||||
|
||||
if (((gSaveContext.equips.button_items[i] >= ITEM_BOTTLE) &&
|
||||
(gSaveContext.equips.button_items[i] <= ITEM_POE)) ||
|
||||
@@ -1221,8 +1226,9 @@ void Inventory_SwapAgeEquipment(void) {
|
||||
temp = gEquipMasks[EQUIP_SHIELD] & gSaveContext.equips.equipment;
|
||||
if (temp != 0) {
|
||||
temp >>= gEquipShifts[EQUIP_SHIELD];
|
||||
if (!(gBitFlags[temp + 3] & gSaveContext.equipment))
|
||||
if (!(gBitFlags[temp + 3] & gSaveContext.equipment)) {
|
||||
gSaveContext.equips.equipment &= gEquipNegMasks[EQUIP_SHIELD];
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
@@ -1315,8 +1321,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
s8 bombCount;
|
||||
|
||||
slot = SLOT(item);
|
||||
if (item >= ITEM_STICKS_5)
|
||||
if (item >= ITEM_STICKS_5) {
|
||||
slot = SLOT(sExtraItemBases[item - ITEM_STICKS_5]);
|
||||
}
|
||||
|
||||
osSyncPrintf(VT_FGCOL(YELLOW));
|
||||
osSyncPrintf("item_get_setting=%d pt=%d z=%x\n", item, slot, gSaveContext.items[slot]);
|
||||
@@ -1330,8 +1337,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
osSyncPrintf("封印 = %x\n", gSaveContext.quest_items);
|
||||
osSyncPrintf(VT_RST);
|
||||
|
||||
if (item == ITEM_MEDALLION_WATER)
|
||||
if (item == ITEM_MEDALLION_WATER) {
|
||||
func_8006D0AC(globalCtx);
|
||||
}
|
||||
|
||||
return ITEM_NONE;
|
||||
} else if ((item >= ITEM_SONG_MINUET) && (item <= ITEM_SONG_STORMS)) {
|
||||
@@ -1423,8 +1431,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
return ITEM_NONE;
|
||||
} else {
|
||||
AMMO(ITEM_BOW)++;
|
||||
if (AMMO(ITEM_BOW) > CUR_CAPACITY(UPG_QUIVER))
|
||||
if (AMMO(ITEM_BOW) > CUR_CAPACITY(UPG_QUIVER)) {
|
||||
AMMO(ITEM_BOW) = CUR_CAPACITY(UPG_QUIVER);
|
||||
}
|
||||
}
|
||||
} else if (item == ITEM_QUIVER_40) {
|
||||
Inventory_ChangeUpgrade(UPG_QUIVER, 2);
|
||||
@@ -1450,8 +1459,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
return ITEM_NONE;
|
||||
} else {
|
||||
AMMO(ITEM_BOMB)++;
|
||||
if (AMMO(ITEM_BOMB) > CUR_CAPACITY(UPG_BOMB_BAG))
|
||||
if (AMMO(ITEM_BOMB) > CUR_CAPACITY(UPG_BOMB_BAG)) {
|
||||
AMMO(ITEM_BOMB) = CUR_CAPACITY(UPG_BOMB_BAG);
|
||||
}
|
||||
}
|
||||
} else if (item == ITEM_BOMB_BAG_30) {
|
||||
Inventory_ChangeUpgrade(UPG_BOMB_BAG, 2);
|
||||
@@ -1483,26 +1493,30 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
Inventory_ChangeUpgrade(UPG_WALLET, 2);
|
||||
return ITEM_NONE;
|
||||
} else if (item == ITEM_STICK_UPGRADE_20) {
|
||||
if (gSaveContext.items[slot] == ITEM_NONE)
|
||||
if (gSaveContext.items[slot] == ITEM_NONE) {
|
||||
INV_CONTENT(ITEM_STICK) = ITEM_STICK;
|
||||
}
|
||||
Inventory_ChangeUpgrade(UPG_STICKS, 2);
|
||||
AMMO(ITEM_STICK) = CAPACITY(UPG_STICKS, 2);
|
||||
return ITEM_NONE;
|
||||
} else if (item == ITEM_STICK_UPGRADE_30) {
|
||||
if (gSaveContext.items[slot] == ITEM_NONE)
|
||||
if (gSaveContext.items[slot] == ITEM_NONE) {
|
||||
INV_CONTENT(ITEM_STICK) = ITEM_STICK;
|
||||
}
|
||||
Inventory_ChangeUpgrade(UPG_STICKS, 3);
|
||||
AMMO(ITEM_STICK) = CAPACITY(UPG_STICKS, 3);
|
||||
return ITEM_NONE;
|
||||
} else if (item == ITEM_NUT_UPGRADE_30) {
|
||||
if (gSaveContext.items[slot] == ITEM_NONE)
|
||||
if (gSaveContext.items[slot] == ITEM_NONE) {
|
||||
INV_CONTENT(ITEM_NUT) = ITEM_NUT;
|
||||
}
|
||||
Inventory_ChangeUpgrade(UPG_NUTS, 2);
|
||||
AMMO(ITEM_NUT) = CAPACITY(UPG_NUTS, 2);
|
||||
return ITEM_NONE;
|
||||
} else if (item == ITEM_NUT_UPGRADE_40) {
|
||||
if (gSaveContext.items[slot] == ITEM_NONE)
|
||||
if (gSaveContext.items[slot] == ITEM_NONE) {
|
||||
INV_CONTENT(ITEM_NUT) = ITEM_NUT;
|
||||
}
|
||||
Inventory_ChangeUpgrade(UPG_NUTS, 3);
|
||||
AMMO(ITEM_NUT) = CAPACITY(UPG_NUTS, 3);
|
||||
return ITEM_NONE;
|
||||
@@ -1521,8 +1535,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
AMMO(ITEM_STICK) = 1;
|
||||
} else {
|
||||
AMMO(ITEM_STICK)++;
|
||||
if (AMMO(ITEM_STICK) > CUR_CAPACITY(UPG_STICKS))
|
||||
if (AMMO(ITEM_STICK) > CUR_CAPACITY(UPG_STICKS)) {
|
||||
AMMO(ITEM_STICK) = CUR_CAPACITY(UPG_STICKS);
|
||||
}
|
||||
}
|
||||
} else if ((item == ITEM_STICKS_5) || (item == ITEM_STICKS_10)) {
|
||||
if (gSaveContext.items[slot] == ITEM_NONE) {
|
||||
@@ -1530,8 +1545,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
AMMO(ITEM_STICK) = sAmmoRefillCounts[item - ITEM_STICKS_5];
|
||||
} else {
|
||||
AMMO(ITEM_STICK) += sAmmoRefillCounts[item - ITEM_STICKS_5];
|
||||
if (AMMO(ITEM_STICK) > CUR_CAPACITY(UPG_STICKS))
|
||||
if (AMMO(ITEM_STICK) > CUR_CAPACITY(UPG_STICKS)) {
|
||||
AMMO(ITEM_STICK) = CUR_CAPACITY(UPG_STICKS);
|
||||
}
|
||||
}
|
||||
item = ITEM_STICK;
|
||||
} else if (item == ITEM_NUT) {
|
||||
@@ -1540,8 +1556,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
AMMO(ITEM_NUT) = ITEM_NUT;
|
||||
} else {
|
||||
AMMO(ITEM_NUT)++;
|
||||
if (AMMO(ITEM_NUT) > CUR_CAPACITY(UPG_NUTS))
|
||||
if (AMMO(ITEM_NUT) > CUR_CAPACITY(UPG_NUTS)) {
|
||||
AMMO(ITEM_NUT) = CUR_CAPACITY(UPG_NUTS);
|
||||
}
|
||||
}
|
||||
} else if ((item == ITEM_NUTS_5) || (item == ITEM_NUTS_10)) {
|
||||
if (gSaveContext.items[slot] == ITEM_NONE) {
|
||||
@@ -1552,8 +1569,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
sAmmoRefillCounts[item - ITEM_NUTS_5]);
|
||||
} else {
|
||||
AMMO(ITEM_NUT) += sAmmoRefillCounts[item - ITEM_NUTS_5];
|
||||
if (AMMO(ITEM_NUT) > CUR_CAPACITY(UPG_NUTS))
|
||||
if (AMMO(ITEM_NUT) > CUR_CAPACITY(UPG_NUTS)) {
|
||||
AMMO(ITEM_NUT) = CUR_CAPACITY(UPG_NUTS);
|
||||
}
|
||||
}
|
||||
item = ITEM_NUT;
|
||||
} else if (item == ITEM_BOMB) {
|
||||
@@ -1561,14 +1579,16 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
osSyncPrintf(" 爆弾 爆弾 爆弾 爆弾 爆弾 爆弾 爆弾 \n");
|
||||
bombCount = AMMO(ITEM_BOMB) + 1;
|
||||
AMMO(ITEM_BOMB) = bombCount;
|
||||
if (bombCount > CUR_CAPACITY(UPG_BOMB_BAG))
|
||||
if (bombCount > CUR_CAPACITY(UPG_BOMB_BAG)) {
|
||||
AMMO(ITEM_BOMB) = CUR_CAPACITY(UPG_BOMB_BAG);
|
||||
}
|
||||
return ITEM_NONE;
|
||||
} else if ((item >= ITEM_BOMBS_5) && (item <= ITEM_BOMBS_30)) {
|
||||
bombCount = AMMO(ITEM_BOMB) + sAmmoRefillCounts[item - ITEM_BOMBS_5];
|
||||
AMMO(ITEM_BOMB) = bombCount;
|
||||
if (bombCount > CUR_CAPACITY(UPG_BOMB_BAG))
|
||||
if (bombCount > CUR_CAPACITY(UPG_BOMB_BAG)) {
|
||||
AMMO(ITEM_BOMB) = CUR_CAPACITY(UPG_BOMB_BAG);
|
||||
}
|
||||
return ITEM_NONE;
|
||||
} else if (item == ITEM_BOMBCHU) {
|
||||
if (gSaveContext.items[slot] == ITEM_NONE) {
|
||||
@@ -1577,8 +1597,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
return ITEM_NONE;
|
||||
} else {
|
||||
AMMO(ITEM_BOMBCHU) += 10;
|
||||
if (AMMO(ITEM_BOMBCHU) > 50)
|
||||
if (AMMO(ITEM_BOMBCHU) > 50) {
|
||||
AMMO(ITEM_BOMBCHU) = 50;
|
||||
}
|
||||
return ITEM_NONE;
|
||||
}
|
||||
} else if ((item == ITEM_BOMBCHUS_5) || (item == ITEM_BOMBCHUS_20)) {
|
||||
@@ -1588,15 +1609,17 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
return ITEM_NONE;
|
||||
} else {
|
||||
AMMO(ITEM_BOMBCHU) += sAmmoRefillCounts[item - ITEM_BOMBCHUS_5 + 8];
|
||||
if (AMMO(ITEM_BOMBCHU) > 50)
|
||||
if (AMMO(ITEM_BOMBCHU) > 50) {
|
||||
AMMO(ITEM_BOMBCHU) = 50;
|
||||
}
|
||||
return ITEM_NONE;
|
||||
}
|
||||
} else if ((item >= ITEM_ARROWS_SMALL) && (item <= ITEM_ARROWS_LARGE)) {
|
||||
AMMO(ITEM_BOW) += sAmmoRefillCounts[item - ITEM_ARROWS_SMALL + 4];
|
||||
|
||||
if ((AMMO(ITEM_BOW) >= CUR_CAPACITY(UPG_QUIVER)) || (AMMO(ITEM_BOW) < 0))
|
||||
if ((AMMO(ITEM_BOW) >= CUR_CAPACITY(UPG_QUIVER)) || (AMMO(ITEM_BOW) < 0)) {
|
||||
AMMO(ITEM_BOW) = CUR_CAPACITY(UPG_QUIVER);
|
||||
}
|
||||
|
||||
osSyncPrintf("%d本 Item_MaxGet=%d\n", AMMO(ITEM_BOW), CUR_CAPACITY(UPG_QUIVER));
|
||||
|
||||
@@ -1609,8 +1632,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
} else if (item == ITEM_SEEDS) {
|
||||
AMMO(ITEM_SLINGSHOT) += 5;
|
||||
|
||||
if (AMMO(ITEM_SLINGSHOT) >= CUR_CAPACITY(UPG_BULLET_BAG))
|
||||
if (AMMO(ITEM_SLINGSHOT) >= CUR_CAPACITY(UPG_BULLET_BAG)) {
|
||||
AMMO(ITEM_SLINGSHOT) = CUR_CAPACITY(UPG_BULLET_BAG);
|
||||
}
|
||||
|
||||
if (!(gSaveContext.item_get_inf[1] & 8)) {
|
||||
gSaveContext.item_get_inf[1] |= 8;
|
||||
@@ -1621,8 +1645,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
} else if (item == ITEM_SEEDS_30) {
|
||||
AMMO(ITEM_SLINGSHOT) += 30;
|
||||
|
||||
if (AMMO(ITEM_SLINGSHOT) >= CUR_CAPACITY(UPG_BULLET_BAG))
|
||||
if (AMMO(ITEM_SLINGSHOT) >= CUR_CAPACITY(UPG_BULLET_BAG)) {
|
||||
AMMO(ITEM_SLINGSHOT) = CUR_CAPACITY(UPG_BULLET_BAG);
|
||||
}
|
||||
|
||||
if (!(gSaveContext.item_get_inf[1] & 8)) {
|
||||
gSaveContext.item_get_inf[1] |= 8;
|
||||
@@ -1665,8 +1690,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
Health_ChangeBy(globalCtx, 0x10);
|
||||
return item;
|
||||
} else if (item == ITEM_MAGIC_SMALL) {
|
||||
if (gSaveContext.unk_13F0 != 10)
|
||||
if (gSaveContext.unk_13F0 != 10) {
|
||||
func_80087680(globalCtx);
|
||||
}
|
||||
|
||||
func_80087708(globalCtx, 12, 5);
|
||||
|
||||
@@ -1677,8 +1703,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
|
||||
return item;
|
||||
} else if (item == ITEM_MAGIC_LARGE) {
|
||||
if (gSaveContext.unk_13F0 != 10)
|
||||
if (gSaveContext.unk_13F0 != 10) {
|
||||
func_80087680(globalCtx);
|
||||
}
|
||||
|
||||
func_80087708(globalCtx, 24, 5);
|
||||
|
||||
@@ -1741,8 +1768,9 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||
}
|
||||
}
|
||||
} else if ((item >= ITEM_WEIRD_EGG) && (item <= ITEM_CLAIM_CHECK)) {
|
||||
if (item == ITEM_SAW)
|
||||
if (item == ITEM_SAW) {
|
||||
gSaveContext.item_get_inf[1] |= 0x8000;
|
||||
}
|
||||
|
||||
prevTradeItem = INV_CONTENT(item);
|
||||
INV_CONTENT(item) = item;
|
||||
@@ -1990,8 +2018,9 @@ void Inventory_UpdateBottleItem(GlobalContext* globalCtx, u8 item, u8 cButton) {
|
||||
|
||||
// Special case to only empty half of a Lon Lon Milk Bottle
|
||||
if ((gSaveContext.items[gSaveContext.equips.c_button_slots[cButton - 1]] == ITEM_MILK_BOTTLE) &&
|
||||
(item == ITEM_BOTTLE))
|
||||
(item == ITEM_BOTTLE)) {
|
||||
item = ITEM_MILK_HALF;
|
||||
}
|
||||
|
||||
gSaveContext.items[gSaveContext.equips.c_button_slots[cButton - 1]] = item;
|
||||
gSaveContext.equips.button_items[cButton] = item;
|
||||
@@ -2052,14 +2081,17 @@ u32 sDoActionTextures[] = { 0x07000000, 0x07000180 };
|
||||
#ifdef NON_MATCHING
|
||||
// 0x80000000 is reused in the 2 *_TO_VIRTUAL macros when it shouldn't
|
||||
void Interface_LoadActionLabel(InterfaceContext* interfaceCtx, u16 action, s16 arg2) {
|
||||
if (action >= 0x1D)
|
||||
if (action >= 0x1D) {
|
||||
action = 0x0A;
|
||||
}
|
||||
|
||||
if (gSaveContext.language != 0)
|
||||
if (gSaveContext.language != 0) {
|
||||
action += 0x1D;
|
||||
}
|
||||
|
||||
if (gSaveContext.language == 2)
|
||||
if (gSaveContext.language == 2) {
|
||||
action += 0x1D;
|
||||
}
|
||||
|
||||
if ((action != 0x0A) && (action != 0x27) && (action != 0x44)) {
|
||||
osCreateMesgQueue(&interfaceCtx->loadQueue, &interfaceCtx->loadMsg, OS_MESG_BLOCK);
|
||||
@@ -2375,12 +2407,14 @@ void Interface_UpdateMagicBar(GlobalContext* globalCtx) {
|
||||
if (gSaveContext.unk_13F4 != maxMagic) {
|
||||
if (gSaveContext.unk_13F4 < maxMagic) {
|
||||
gSaveContext.unk_13F4 += 8;
|
||||
if (gSaveContext.unk_13F4 > maxMagic)
|
||||
if (gSaveContext.unk_13F4 > maxMagic) {
|
||||
gSaveContext.unk_13F4 = maxMagic;
|
||||
}
|
||||
} else {
|
||||
gSaveContext.unk_13F4 -= 8;
|
||||
if (gSaveContext.unk_13F4 <= maxMagic)
|
||||
if (gSaveContext.unk_13F4 <= maxMagic) {
|
||||
gSaveContext.unk_13F4 = maxMagic;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
gSaveContext.unk_13F0 = 9;
|
||||
@@ -2389,8 +2423,9 @@ void Interface_UpdateMagicBar(GlobalContext* globalCtx) {
|
||||
case 9:
|
||||
gSaveContext.magic += 4;
|
||||
|
||||
if (gSaveContext.game_mode == 0 && gSaveContext.scene_setup_index < 4)
|
||||
if (gSaveContext.game_mode == 0 && gSaveContext.scene_setup_index < 4) {
|
||||
Audio_PlaySoundGeneral(0x401F, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||
}
|
||||
|
||||
// Translates to: "Storage MAGIC_NOW=%d (%d)"
|
||||
osSyncPrintf("蓄電 MAGIC_NOW=%d (%d)\n", gSaveContext.magic, gSaveContext.unk_13F6);
|
||||
@@ -2423,20 +2458,23 @@ void Interface_UpdateMagicBar(GlobalContext* globalCtx) {
|
||||
case 6:
|
||||
color = sMagicBorderColors[sMagicBorderIndexes[sMagicBorderStep]];
|
||||
|
||||
if (sMagicBorderR >= color[0])
|
||||
if (sMagicBorderR >= color[0]) {
|
||||
sMagicBorderR -= ABS(sMagicBorderR - color[0]) / sMagicBorderRatio;
|
||||
else
|
||||
} else {
|
||||
sMagicBorderR += ABS(sMagicBorderR - color[0]) / sMagicBorderRatio;
|
||||
}
|
||||
|
||||
if (sMagicBorderG >= color[1])
|
||||
if (sMagicBorderG >= color[1]) {
|
||||
sMagicBorderG -= ABS(sMagicBorderG - color[1]) / sMagicBorderRatio;
|
||||
else
|
||||
} else {
|
||||
sMagicBorderG += ABS(sMagicBorderG - color[1]) / sMagicBorderRatio;
|
||||
}
|
||||
|
||||
if (sMagicBorderB >= color[2])
|
||||
if (sMagicBorderB >= color[2]) {
|
||||
sMagicBorderB -= ABS(sMagicBorderB - color[2]) / sMagicBorderRatio;
|
||||
else
|
||||
} else {
|
||||
sMagicBorderB += ABS(sMagicBorderB - color[2]) / sMagicBorderRatio;
|
||||
}
|
||||
|
||||
sMagicBorderRatio--;
|
||||
if (sMagicBorderRatio == 0) {
|
||||
@@ -2445,8 +2483,9 @@ void Interface_UpdateMagicBar(GlobalContext* globalCtx) {
|
||||
sMagicBorderB = color[2];
|
||||
sMagicBorderRatio = YREG(40 + sMagicBorderStep);
|
||||
sMagicBorderStep++;
|
||||
if (sMagicBorderStep >= 4)
|
||||
if (sMagicBorderStep >= 4) {
|
||||
sMagicBorderStep = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
@@ -2481,20 +2520,23 @@ void Interface_UpdateMagicBar(GlobalContext* globalCtx) {
|
||||
|
||||
color = sMagicBorderColors[sMagicBorderIndexes[sMagicBorderStep]];
|
||||
|
||||
if (sMagicBorderR >= color[0])
|
||||
if (sMagicBorderR >= color[0]) {
|
||||
sMagicBorderR -= ABS(sMagicBorderR - color[0]) / sMagicBorderRatio;
|
||||
else
|
||||
} else {
|
||||
sMagicBorderR += ABS(sMagicBorderR - color[0]) / sMagicBorderRatio;
|
||||
}
|
||||
|
||||
if (sMagicBorderG >= color[1])
|
||||
if (sMagicBorderG >= color[1]) {
|
||||
sMagicBorderG -= ABS(sMagicBorderG - color[1]) / sMagicBorderRatio;
|
||||
else
|
||||
} else {
|
||||
sMagicBorderG += ABS(sMagicBorderG - color[1]) / sMagicBorderRatio;
|
||||
}
|
||||
|
||||
if (sMagicBorderB >= color[2])
|
||||
if (sMagicBorderB >= color[2]) {
|
||||
sMagicBorderB -= ABS(sMagicBorderB - color[2]) / sMagicBorderRatio;
|
||||
else
|
||||
} else {
|
||||
sMagicBorderB += ABS(sMagicBorderB - color[2]) / sMagicBorderRatio;
|
||||
}
|
||||
|
||||
sMagicBorderRatio--;
|
||||
if (sMagicBorderRatio == 0) {
|
||||
@@ -2503,8 +2545,9 @@ void Interface_UpdateMagicBar(GlobalContext* globalCtx) {
|
||||
sMagicBorderB = color[2];
|
||||
sMagicBorderRatio = YREG(40 + sMagicBorderStep);
|
||||
sMagicBorderStep++;
|
||||
if (sMagicBorderStep >= 4)
|
||||
if (sMagicBorderStep >= 4) {
|
||||
sMagicBorderStep = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 10:
|
||||
@@ -2772,13 +2815,14 @@ void Interface_DrawItemButtons(GlobalContext* globalCtx) {
|
||||
// C-Up Button Texture, Color & Label (Navi Text)
|
||||
gDPPipeSync(gfxCtx->overlay.p++);
|
||||
|
||||
if ((gSaveContext.unk_13EA == 1) || (gSaveContext.unk_13EA == 2) || (gSaveContext.unk_13EA == 5))
|
||||
if ((gSaveContext.unk_13EA == 1) || (gSaveContext.unk_13EA == 2) || (gSaveContext.unk_13EA == 5)) {
|
||||
cUpAlpha = 0;
|
||||
else if ((player->stateFlags2 & 0x00200000) || (func_8008F2F8(globalCtx) == 4) ||
|
||||
(player->stateFlags2 & 0x00040000))
|
||||
} else if ((player->stateFlags2 & 0x00200000) || (func_8008F2F8(globalCtx) == 4) ||
|
||||
(player->stateFlags2 & 0x00040000)) {
|
||||
cUpAlpha = 0x46;
|
||||
else
|
||||
} else {
|
||||
cUpAlpha = interfaceCtx->healthAlpha;
|
||||
}
|
||||
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2), cUpAlpha);
|
||||
gDPSetCombineLERP(gfxCtx->overlay.p++, TEXEL0, 0, PRIMITIVE, 0, TEXEL0, 0, PRIMITIVE, 0, TEXEL0, 0,
|
||||
@@ -2820,15 +2864,16 @@ void Interface_DrawItemButtons(GlobalContext* globalCtx) {
|
||||
// Empty C Button Arrows
|
||||
for (i = 1; i < 4; i++) {
|
||||
if (gSaveContext.equips.button_items[i] > 0xF0) {
|
||||
if (i == 1)
|
||||
if (i == 1) {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
||||
interfaceCtx->cLeftAlpha);
|
||||
else if (i == 2)
|
||||
} else if (i == 2) {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
||||
interfaceCtx->cDownAlpha);
|
||||
else
|
||||
} else {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, R_C_BTN_COLOR(0), R_C_BTN_COLOR(1), R_C_BTN_COLOR(2),
|
||||
interfaceCtx->cRightAlpha);
|
||||
}
|
||||
|
||||
gfxCtx->overlay.p =
|
||||
Draw_TextureIA8(gfxCtx->overlay.p, &D_02000A00[i + 1], 0x20, 0x20, R_ITEM_BTN_X(i), R_ITEM_BTN_Y(i),
|
||||
@@ -3188,12 +3233,13 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
// Rupee Counter
|
||||
gDPPipeSync(gfxCtx->overlay.p++);
|
||||
|
||||
if (gSaveContext.rupees == CUR_CAPACITY(UPG_WALLET))
|
||||
if (gSaveContext.rupees == CUR_CAPACITY(UPG_WALLET)) {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0x78, 0xFF, 0x00, interfaceCtx->magicAlpha);
|
||||
else if (gSaveContext.rupees != 0)
|
||||
} else if (gSaveContext.rupees != 0) {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0xFF, 0xFF, 0xFF, interfaceCtx->magicAlpha);
|
||||
else
|
||||
} else {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0x64, 0x64, 0x64, interfaceCtx->magicAlpha);
|
||||
}
|
||||
|
||||
gDPSetCombineLERP(gfxCtx->overlay.p++, 0, 0, 0, PRIMITIVE, TEXEL0, 0, PRIMITIVE, 0, 0, 0, 0, PRIMITIVE, TEXEL0,
|
||||
0, PRIMITIVE, 0);
|
||||
@@ -3201,8 +3247,9 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
interfaceCtx->counterDigits[0] = interfaceCtx->counterDigits[1] = 0;
|
||||
interfaceCtx->counterDigits[2] = gSaveContext.rupees;
|
||||
|
||||
if ((interfaceCtx->counterDigits[2] >= 10000) || (interfaceCtx->counterDigits[2] < 0))
|
||||
if ((interfaceCtx->counterDigits[2] >= 10000) || (interfaceCtx->counterDigits[2] < 0)) {
|
||||
interfaceCtx->counterDigits[2] &= 0xDDD;
|
||||
}
|
||||
|
||||
while (interfaceCtx->counterDigits[2] >= 100) {
|
||||
interfaceCtx->counterDigits[2] -= 100;
|
||||
@@ -3225,8 +3272,9 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
Interface_DrawMagicBar(globalCtx);
|
||||
Interface_DrawMinimap(globalCtx);
|
||||
|
||||
if ((R_PAUSE_MENU_MODE != 2) && (R_PAUSE_MENU_MODE != 3))
|
||||
if ((R_PAUSE_MENU_MODE != 2) && (R_PAUSE_MENU_MODE != 3)) {
|
||||
func_8002C124(&globalCtx->actorCtx.targetCtx, globalCtx); // Draw Z-Target
|
||||
}
|
||||
|
||||
func_80094520(globalCtx->state.gfxCtx);
|
||||
|
||||
@@ -3343,10 +3391,11 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
G_MTX_MODELVIEW | G_MTX_LOAD);
|
||||
gSPVertex(gfxCtx->overlay.p++, &interfaceCtx->vtx_128[4], 4, 0);
|
||||
|
||||
if ((interfaceCtx->unk_1EC < 2) || (interfaceCtx->unk_1EC == 3))
|
||||
if ((interfaceCtx->unk_1EC < 2) || (interfaceCtx->unk_1EC == 3)) {
|
||||
Interface_DrawActionLabel(globalCtx->state.gfxCtx, (void*)(u32)interfaceCtx->do_actionSegment);
|
||||
else
|
||||
} else {
|
||||
Interface_DrawActionLabel(globalCtx->state.gfxCtx, (void*)((u32)interfaceCtx->do_actionSegment + 0x180));
|
||||
}
|
||||
|
||||
gDPPipeSync(gfxCtx->overlay.p++);
|
||||
|
||||
@@ -3441,10 +3490,11 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
phi_s1 = ZREG(14);
|
||||
for (phi_s3 = 1; phi_s3 < 7; phi_s3++) {
|
||||
// Carrot Color (based on availability)
|
||||
if ((interfaceCtx->unk_23A == 0) || (interfaceCtx->unk_23A < phi_s3))
|
||||
if ((interfaceCtx->unk_23A == 0) || (interfaceCtx->unk_23A < phi_s3)) {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0x00, 0x96, 0xFF, interfaceCtx->aAlpha);
|
||||
else
|
||||
} else {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0xFF, 0xFF, 0xFF, interfaceCtx->aAlpha);
|
||||
}
|
||||
|
||||
gSPTextureRectangle(gfxCtx->overlay.p++, phi_s1 << 2, ZREG(15) << 2, (phi_s1 + 16) << 2,
|
||||
(ZREG(15) + 16) << 2, G_TX_RENDERTILE, 0, 0, 1024, 1024);
|
||||
@@ -3507,10 +3557,11 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
(gSaveContext.equips.button_items[0] != ITEM_SWORD_MASTER) &&
|
||||
(gSaveContext.equips.button_items[0] != ITEM_SWORD_BGS) &&
|
||||
(gSaveContext.equips.button_items[0] != ITEM_SWORD_KNIFE)) {
|
||||
if (gSaveContext.button_status[0] != BTN_ENABLED)
|
||||
if (gSaveContext.button_status[0] != BTN_ENABLED) {
|
||||
gSaveContext.equips.button_items[0] = gSaveContext.button_status[0];
|
||||
else
|
||||
} else {
|
||||
gSaveContext.equips.button_items[0] = ITEM_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
// Revert any spoiling trade quest items
|
||||
@@ -3553,20 +3604,22 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
case 5:
|
||||
case 11:
|
||||
D_8015FFE0 = D_8015FFE2 = 20;
|
||||
if (gSaveContext.timer_1_state == 5)
|
||||
if (gSaveContext.timer_1_state == 5) {
|
||||
gSaveContext.timer_1_state = 6;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_1_state = 12;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
case 12:
|
||||
D_8015FFE2--;
|
||||
if (D_8015FFE2 == 0) {
|
||||
D_8015FFE2 = 20;
|
||||
if (gSaveContext.timer_1_state == 6)
|
||||
if (gSaveContext.timer_1_state == 6) {
|
||||
gSaveContext.timer_1_state = 7;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_1_state = 13;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
@@ -3574,10 +3627,11 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
phi_s3 = (gSaveContext.timer_x[0] - 26) / D_8015FFE2;
|
||||
gSaveContext.timer_x[0] -= phi_s3;
|
||||
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
phi_s3 = (gSaveContext.timer_y[0] - 54) / D_8015FFE2;
|
||||
else
|
||||
} else {
|
||||
phi_s3 = (gSaveContext.timer_y[0] - 46) / D_8015FFE2;
|
||||
}
|
||||
gSaveContext.timer_y[0] -= phi_s3;
|
||||
|
||||
D_8015FFE2--;
|
||||
@@ -3585,30 +3639,34 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
gSaveContext.timer_x[0] = 26;
|
||||
D_8015FFE2 = 20;
|
||||
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
gSaveContext.timer_y[0] = 54;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_y[0] = 46;
|
||||
}
|
||||
|
||||
if (gSaveContext.timer_1_state == 3)
|
||||
if (gSaveContext.timer_1_state == 3) {
|
||||
gSaveContext.timer_1_state = 4;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_1_state = 8;
|
||||
}
|
||||
}
|
||||
case 4:
|
||||
case 8:
|
||||
if ((gSaveContext.timer_1_state == 4) || (gSaveContext.timer_1_state == 8)) {
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
gSaveContext.timer_y[0] = 54;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_y[0] = 46;
|
||||
}
|
||||
}
|
||||
|
||||
if ((gSaveContext.timer_1_state >= 3) && (msgCtx->unk_E300 == 0)) {
|
||||
D_8015FFE0--;
|
||||
if (D_8015FFE0 == 0) {
|
||||
if (gSaveContext.timer_1_value != 0)
|
||||
if (gSaveContext.timer_1_value != 0) {
|
||||
gSaveContext.timer_1_value--;
|
||||
}
|
||||
|
||||
D_8015FFE0 = 20;
|
||||
|
||||
@@ -3620,13 +3678,15 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
}
|
||||
D_80125A5C = 0;
|
||||
} else if (gSaveContext.timer_1_value > 60) {
|
||||
if (sTimerDigits[4] == 1)
|
||||
if (sTimerDigits[4] == 1) {
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_MESSAGE_WOMAN, &D_801333D4, 4, &D_801333E0,
|
||||
&D_801333E0, &D_801333E8);
|
||||
}
|
||||
} else if (gSaveContext.timer_1_value >= 11) {
|
||||
if (sTimerDigits[4] & 1)
|
||||
if (sTimerDigits[4] & 1) {
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_N, &D_801333D4, 4, &D_801333E0,
|
||||
&D_801333E0, &D_801333E8);
|
||||
}
|
||||
} else {
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_E, &D_801333D4, 4, &D_801333E0,
|
||||
&D_801333E0, &D_801333E8);
|
||||
@@ -3638,10 +3698,11 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
phi_s3 = (gSaveContext.timer_x[0] - 26) / D_8015FFE2;
|
||||
gSaveContext.timer_x[0] -= phi_s3;
|
||||
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
phi_s3 = (gSaveContext.timer_y[0] - 54) / D_8015FFE2;
|
||||
else
|
||||
} else {
|
||||
phi_s3 = (gSaveContext.timer_y[0] - 46) / D_8015FFE2;
|
||||
}
|
||||
gSaveContext.timer_y[0] -= phi_s3;
|
||||
|
||||
D_8015FFE2--;
|
||||
@@ -3649,19 +3710,21 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
gSaveContext.timer_x[0] = 26;
|
||||
D_8015FFE2 = 20;
|
||||
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
gSaveContext.timer_y[0] = 54;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_y[0] = 46;
|
||||
}
|
||||
|
||||
gSaveContext.timer_1_state = 14;
|
||||
}
|
||||
case 14:
|
||||
if (gSaveContext.timer_1_state == 14) {
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
gSaveContext.timer_y[0] = 54;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_y[0] = 46;
|
||||
}
|
||||
}
|
||||
|
||||
if (gSaveContext.timer_1_state >= 3) {
|
||||
@@ -3686,10 +3749,11 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
gSaveContext.timer_y[1] = 80;
|
||||
D_8015FFE4 = D_8015FFE6 = 20;
|
||||
|
||||
if (gSaveContext.timer_2_state < 7)
|
||||
if (gSaveContext.timer_2_state < 7) {
|
||||
gSaveContext.timer_2_state = 2;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_2_state = 8;
|
||||
}
|
||||
|
||||
gSaveContext.timer_1_state = 0;
|
||||
} else {
|
||||
@@ -3706,20 +3770,22 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
gSaveContext.timer_x[1] = 140;
|
||||
gSaveContext.timer_y[1] = 80;
|
||||
D_8015FFE4 = D_8015FFE6 = 20;
|
||||
if (gSaveContext.timer_2_state == 1)
|
||||
if (gSaveContext.timer_2_state == 1) {
|
||||
gSaveContext.timer_2_state = 2;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_2_state = 8;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
case 8:
|
||||
D_8015FFE6--;
|
||||
if (D_8015FFE6 == 0) {
|
||||
D_8015FFE6 = 20;
|
||||
if (gSaveContext.timer_2_state == 2)
|
||||
if (gSaveContext.timer_2_state == 2) {
|
||||
gSaveContext.timer_2_state = 3;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_2_state = 9;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
@@ -3730,10 +3796,11 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
phi_s3 = (gSaveContext.timer_x[1] - 26) / D_8015FFE2;
|
||||
gSaveContext.timer_x[1] -= phi_s3;
|
||||
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
phi_s3 = (gSaveContext.timer_y[1] - 54) / D_8015FFE6;
|
||||
else
|
||||
} else {
|
||||
phi_s3 = (gSaveContext.timer_y[1] - 46) / D_8015FFE6;
|
||||
}
|
||||
gSaveContext.timer_y[1] -= phi_s3;
|
||||
|
||||
D_8015FFE6--;
|
||||
@@ -3741,23 +3808,26 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
gSaveContext.timer_x[1] = 26;
|
||||
D_8015FFE6 = 20;
|
||||
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
gSaveContext.timer_y[1] = 54;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_y[1] = 46;
|
||||
}
|
||||
|
||||
if (gSaveContext.timer_2_state == 3)
|
||||
if (gSaveContext.timer_2_state == 3) {
|
||||
gSaveContext.timer_2_state = 4;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_2_state = 10;
|
||||
}
|
||||
}
|
||||
case 4:
|
||||
case 10:
|
||||
if ((gSaveContext.timer_2_state == 4) || (gSaveContext.timer_2_state == 10)) {
|
||||
if (gSaveContext.health_capacity > 0xA0)
|
||||
if (gSaveContext.health_capacity > 0xA0) {
|
||||
gSaveContext.timer_y[1] = 54;
|
||||
else
|
||||
} else {
|
||||
gSaveContext.timer_y[1] = 46;
|
||||
}
|
||||
}
|
||||
|
||||
if (gSaveContext.timer_2_state >= 3) {
|
||||
@@ -3785,13 +3855,15 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
}
|
||||
} else {
|
||||
if (gSaveContext.timer_2_value > 60) {
|
||||
if (sTimerDigits[4] == 1)
|
||||
if (sTimerDigits[4] == 1) {
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_MESSAGE_WOMAN, &D_801333D4, 4,
|
||||
&D_801333E0, &D_801333E0, &D_801333E8);
|
||||
}
|
||||
} else if (gSaveContext.timer_2_value > 10) {
|
||||
if (sTimerDigits[4] & 1)
|
||||
if (sTimerDigits[4] & 1) {
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_N, &D_801333D4, 4,
|
||||
&D_801333E0, &D_801333E0, &D_801333E8);
|
||||
}
|
||||
} else {
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_WARNING_COUNT_E, &D_801333D4, 4,
|
||||
&D_801333E0, &D_801333E0, &D_801333E8);
|
||||
@@ -3817,8 +3889,9 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
break;
|
||||
case 6:
|
||||
D_8015FFE6--;
|
||||
if (D_8015FFE6 == 0)
|
||||
if (D_8015FFE6 == 0) {
|
||||
gSaveContext.timer_2_state = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -3828,10 +3901,11 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
sTimerDigits[0] = sTimerDigits[1] = sTimerDigits[3] = 0;
|
||||
sTimerDigits[2] = 10; // digit 10 is used as ':' (colon)
|
||||
|
||||
if (gSaveContext.timer_1_state != 0)
|
||||
if (gSaveContext.timer_1_state != 0) {
|
||||
sTimerDigits[4] = gSaveContext.timer_1_value;
|
||||
else
|
||||
} else {
|
||||
sTimerDigits[4] = gSaveContext.timer_2_value;
|
||||
}
|
||||
|
||||
while (sTimerDigits[4] >= 60) {
|
||||
sTimerDigits[1]++;
|
||||
@@ -3860,15 +3934,17 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
TEXEL0, 0, PRIMITIVE, 0);
|
||||
|
||||
if (gSaveContext.timer_1_state != 0) {
|
||||
if ((gSaveContext.timer_1_value < 10) && (gSaveContext.timer_1_state < 11))
|
||||
if ((gSaveContext.timer_1_value < 10) && (gSaveContext.timer_1_state < 11)) {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0xFF, 0x32, 0x00, 0xFF);
|
||||
else
|
||||
} else {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0xFF, 0xFF, 0xFF, 0xFF);
|
||||
}
|
||||
} else {
|
||||
if ((gSaveContext.timer_2_value < 10) && (gSaveContext.timer_2_state < 6))
|
||||
if ((gSaveContext.timer_2_value < 10) && (gSaveContext.timer_2_state < 6)) {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0xFF, 0x32, 0x00, 0xFF);
|
||||
else
|
||||
} else {
|
||||
gDPSetPrimColor(gfxCtx->overlay.p++, 0, 0, 0xFF, 0xFF, 0x00, 0xFF);
|
||||
}
|
||||
}
|
||||
|
||||
for (phi_s3 = 0; phi_s3 < 5; phi_s3++) {
|
||||
@@ -3881,8 +3957,9 @@ void Interface_Draw(GlobalContext* globalCtx) {
|
||||
}
|
||||
}
|
||||
|
||||
if (pauseCtx->flag == 3)
|
||||
if (pauseCtx->flag == 3) {
|
||||
func_8002AAB0(globalCtx);
|
||||
}
|
||||
|
||||
if (interfaceCtx->unk_244 != 0) {
|
||||
gDPPipeSync(gfxCtx->overlay.p++);
|
||||
@@ -3952,32 +4029,38 @@ void Interface_Update(GlobalContext* globalCtx) {
|
||||
case 12:
|
||||
case 13:
|
||||
alpha = 0xFF - (gSaveContext.unk_13EC << 5);
|
||||
if (alpha < 0)
|
||||
if (alpha < 0) {
|
||||
alpha = 0;
|
||||
}
|
||||
|
||||
func_80082850(globalCtx, alpha);
|
||||
gSaveContext.unk_13EC++;
|
||||
|
||||
if (alpha == 0)
|
||||
if (alpha == 0) {
|
||||
gSaveContext.unk_13E8 = 0;
|
||||
}
|
||||
break;
|
||||
case 50:
|
||||
alpha = 0xFF - (gSaveContext.unk_13EC << 5);
|
||||
if (alpha < 0)
|
||||
if (alpha < 0) {
|
||||
alpha = 0;
|
||||
}
|
||||
|
||||
alpha1 = 0xFF - alpha;
|
||||
if (alpha1 >= 0xFF)
|
||||
if (alpha1 >= 0xFF) {
|
||||
alpha1 = 0xFF;
|
||||
}
|
||||
|
||||
osSyncPrintf("case 50 : alpha=%d alpha1=%d\n", alpha, alpha1);
|
||||
func_80082644(globalCtx, alpha1);
|
||||
|
||||
if (interfaceCtx->healthAlpha != 0xFF)
|
||||
if (interfaceCtx->healthAlpha != 0xFF) {
|
||||
interfaceCtx->healthAlpha = alpha1;
|
||||
}
|
||||
|
||||
if (interfaceCtx->magicAlpha != 0xFF)
|
||||
if (interfaceCtx->magicAlpha != 0xFF) {
|
||||
interfaceCtx->magicAlpha = alpha1;
|
||||
}
|
||||
|
||||
switch (globalCtx->sceneNum) {
|
||||
case SCENE_SPOT00:
|
||||
@@ -4000,20 +4083,23 @@ void Interface_Update(GlobalContext* globalCtx) {
|
||||
case SCENE_SPOT18:
|
||||
case SCENE_SPOT20:
|
||||
case SCENE_GANON_TOU:
|
||||
if (interfaceCtx->minimapAlpha < 0xAA)
|
||||
if (interfaceCtx->minimapAlpha < 0xAA) {
|
||||
interfaceCtx->minimapAlpha = alpha1;
|
||||
else
|
||||
} else {
|
||||
interfaceCtx->minimapAlpha = 0xAA;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (interfaceCtx->minimapAlpha != 0xFF)
|
||||
if (interfaceCtx->minimapAlpha != 0xFF) {
|
||||
interfaceCtx->minimapAlpha = alpha1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
gSaveContext.unk_13EC++;
|
||||
if (alpha1 == 0xFF)
|
||||
if (alpha1 == 0xFF) {
|
||||
gSaveContext.unk_13E8 = 0;
|
||||
}
|
||||
|
||||
break;
|
||||
case 52:
|
||||
@@ -4030,8 +4116,9 @@ void Interface_Update(GlobalContext* globalCtx) {
|
||||
gSaveContext.health_accumulator -= 4;
|
||||
gSaveContext.health += 4;
|
||||
|
||||
if ((gSaveContext.health & 0xF) < 4)
|
||||
if ((gSaveContext.health & 0xF) < 4) {
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_HP_RECOVER, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||
}
|
||||
|
||||
osSyncPrintf("now_life=%d max_life=%d\n", gSaveContext.health, gSaveContext.health_capacity);
|
||||
|
||||
@@ -4079,8 +4166,9 @@ void Interface_Update(GlobalContext* globalCtx) {
|
||||
gSaveContext.rupee_accumulator += 10;
|
||||
gSaveContext.rupees -= 10;
|
||||
|
||||
if (gSaveContext.rupees < 0)
|
||||
if (gSaveContext.rupees < 0) {
|
||||
gSaveContext.rupees = 0;
|
||||
}
|
||||
|
||||
Audio_PlaySoundGeneral(NA_SE_SY_RUPY_COUNT, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||
} else {
|
||||
@@ -4108,8 +4196,9 @@ void Interface_Update(GlobalContext* globalCtx) {
|
||||
interfaceCtx->unk_1EC = 0;
|
||||
interfaceCtx->unk_1EE = interfaceCtx->unk_1F0;
|
||||
action = interfaceCtx->unk_1EE;
|
||||
if ((action == 0x1D) || (action == 0x1E))
|
||||
if ((action == 0x1D) || (action == 0x1E)) {
|
||||
action = 0xA;
|
||||
}
|
||||
Interface_LoadActionLabel(interfaceCtx, action, 0);
|
||||
}
|
||||
break;
|
||||
@@ -4127,8 +4216,9 @@ void Interface_Update(GlobalContext* globalCtx) {
|
||||
interfaceCtx->unk_1EC = 0;
|
||||
interfaceCtx->unk_1EE = interfaceCtx->unk_1F0;
|
||||
action = interfaceCtx->unk_1EE;
|
||||
if ((action == 0x1D) || (action == 0x1E))
|
||||
if ((action == 0x1D) || (action == 0x1E)) {
|
||||
action = 0xA;
|
||||
}
|
||||
Interface_LoadActionLabel(interfaceCtx, action, 0);
|
||||
}
|
||||
break;
|
||||
@@ -4173,11 +4263,13 @@ void Interface_Update(GlobalContext* globalCtx) {
|
||||
interfaceCtx->unk_23C = 0;
|
||||
|
||||
if (sHBAScoreTier == 0) {
|
||||
if (gSaveContext.minigame_score >= 1000)
|
||||
if (gSaveContext.minigame_score >= 1000) {
|
||||
sHBAScoreTier++;
|
||||
}
|
||||
} else if (sHBAScoreTier == 1) {
|
||||
if (gSaveContext.minigame_score >= 1500)
|
||||
if (gSaveContext.minigame_score >= 1500) {
|
||||
sHBAScoreTier++;
|
||||
}
|
||||
}
|
||||
|
||||
sHBAScoreDigits[1] = 0;
|
||||
@@ -4202,14 +4294,16 @@ void Interface_Update(GlobalContext* globalCtx) {
|
||||
}
|
||||
|
||||
if (gSaveContext.unk_1422 != 0) {
|
||||
if ((msgCtx->unk_E3F0 != 0x31) && (gSaveContext.unk_1422 == 1))
|
||||
if ((msgCtx->unk_E3F0 != 0x31) && (gSaveContext.unk_1422 == 1)) {
|
||||
globalCtx->msgCtx.unk_E3EE = 4;
|
||||
}
|
||||
|
||||
if (globalCtx->unk_10A26 != 0) {
|
||||
if (gSaveContext.unk_1422 != 2) {
|
||||
D_80125B60 = 0;
|
||||
if ((gSaveContext.day_time >= 0x4555) && (gSaveContext.day_time <= 0xC001))
|
||||
if ((gSaveContext.day_time >= 0x4555) && (gSaveContext.day_time <= 0xC001)) {
|
||||
D_80125B60 = 1;
|
||||
}
|
||||
|
||||
gSaveContext.unk_1422 = 2;
|
||||
D_80125B64 = D_8011FB40;
|
||||
|
||||
+24
-13
@@ -129,8 +129,9 @@ void func_80095D04(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||
spA4 = &spB8[0];
|
||||
polygonDlist = SEGMENTED_TO_VIRTUAL(room->mesh->polygon2.start);
|
||||
polygon2 = &room->mesh->polygon2;
|
||||
if (polygon2->num > SHAPE_SORT_MAX)
|
||||
if (polygon2->num > SHAPE_SORT_MAX) {
|
||||
__assert("polygon2->num <= SHAPE_SORT_MAX", "../z_room.c", 317);
|
||||
}
|
||||
|
||||
sp78 = polygonDlist;
|
||||
for (sp9C = 0; sp9C < polygon2->num; sp9C++) {
|
||||
@@ -152,8 +153,9 @@ void func_80095D04(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||
spA4->unk_08 = NULL;
|
||||
} else {
|
||||
do {
|
||||
if (spA4->unk_04 < phi_v0->unk_04)
|
||||
if (spA4->unk_04 < phi_v0->unk_04) {
|
||||
break;
|
||||
}
|
||||
phi_v0 = phi_v0->unk_0C;
|
||||
} while (phi_v0 != NULL);
|
||||
|
||||
@@ -165,10 +167,11 @@ void func_80095D04(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||
} else {
|
||||
phi_a0 = phi_v0->unk_08;
|
||||
spA4->unk_08 = phi_a0;
|
||||
if (phi_a0 == NULL)
|
||||
if (phi_a0 == NULL) {
|
||||
spB4 = spA4;
|
||||
else
|
||||
} else {
|
||||
phi_a0->unk_0C = spA4;
|
||||
}
|
||||
phi_v0->unk_08 = spA4;
|
||||
spA4->unk_0C = (void*)phi_v0;
|
||||
}
|
||||
@@ -187,25 +190,30 @@ void func_80095D04(GlobalContext* globalCtx, Room* room, u32 flags) {
|
||||
if (iREG(86) != 0) {
|
||||
phi_v1 = 0;
|
||||
while (phi_v1 < polygon2->num) {
|
||||
if (phi_s0 == sp78)
|
||||
if (phi_s0 == sp78) {
|
||||
break;
|
||||
}
|
||||
phi_v1++;
|
||||
sp78++;
|
||||
}
|
||||
|
||||
if (((iREG(86) == 1) && (iREG(89) > sp9C)) || ((iREG(86) == 2) && (iREG(89) == sp9C))) {
|
||||
if ((flags & 1) && (phi_s0->opa != NULL))
|
||||
if ((flags & 1) && (phi_s0->opa != NULL)) {
|
||||
gSPDisplayList(gfxCtx->polyOpa.p++, phi_s0->opa);
|
||||
}
|
||||
|
||||
if ((flags & 2) && (phi_s0->xlu != NULL))
|
||||
if ((flags & 2) && (phi_s0->xlu != NULL)) {
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, phi_s0->xlu);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if ((flags & 1) && (phi_s0->opa != NULL))
|
||||
if ((flags & 1) && (phi_s0->opa != NULL)) {
|
||||
gSPDisplayList(gfxCtx->polyOpa.p++, phi_s0->opa);
|
||||
}
|
||||
|
||||
if ((flags & 2) && (phi_s0->xlu != NULL))
|
||||
if ((flags & 2) && (phi_s0->xlu != NULL)) {
|
||||
gSPDisplayList(gfxCtx->polyXlu.p++, phi_s0->xlu);
|
||||
}
|
||||
}
|
||||
|
||||
spB4 = spB4->unk_0C;
|
||||
@@ -541,8 +549,9 @@ u32 func_80096FE8(GlobalContext* globalCtx, RoomContext* roomCtx) {
|
||||
for (i = 0; i < globalCtx->nbRooms; i++) {
|
||||
roomSize = roomList[i].vromEnd - roomList[i].vromStart;
|
||||
osSyncPrintf("ROOM%d size=%d\n", i, roomSize);
|
||||
if (maxRoomSize < roomSize)
|
||||
if (maxRoomSize < roomSize) {
|
||||
maxRoomSize = roomSize;
|
||||
}
|
||||
}
|
||||
|
||||
if (globalCtx->nbTransitionActors != 0) {
|
||||
@@ -559,8 +568,9 @@ u32 func_80096FE8(GlobalContext* globalCtx, RoomContext* roomCtx) {
|
||||
cumulRoomSize = (frontRoom != backRoom) ? frontRoomSize + backRoomSize : frontRoomSize;
|
||||
osSyncPrintf("DOOR%d=<%d> ROOM1=<%d, %d> ROOM2=<%d, %d>\n", j, cumulRoomSize, frontRoom, frontRoomSize,
|
||||
backRoom, backRoomSize);
|
||||
if (maxRoomSize < cumulRoomSize)
|
||||
if (maxRoomSize < cumulRoomSize) {
|
||||
maxRoomSize = cumulRoomSize;
|
||||
}
|
||||
transitionActor++;
|
||||
}
|
||||
}
|
||||
@@ -578,10 +588,11 @@ u32 func_80096FE8(GlobalContext* globalCtx, RoomContext* roomCtx) {
|
||||
roomCtx->unk_30 = 0;
|
||||
roomCtx->status = 0;
|
||||
|
||||
if (gSaveContext.respawn_flag > 0)
|
||||
if (gSaveContext.respawn_flag > 0) {
|
||||
nextRoomNum = gSaveContext.respawn[gSaveContext.respawn_flag - 1].room_index;
|
||||
else
|
||||
} else {
|
||||
nextRoomNum = globalCtx->setupEntranceList[globalCtx->curSpawn].room;
|
||||
}
|
||||
func_8009728C(globalCtx, roomCtx, nextRoomNum);
|
||||
|
||||
return maxRoomSize;
|
||||
|
||||
+4
-2
@@ -312,13 +312,15 @@ void func_8009899C(GlobalContext* globalCtx, SceneCmd* cmd) {
|
||||
}
|
||||
}
|
||||
|
||||
if (cmd->objectList.num > OBJECT_EXCHANGE_BANK_MAX)
|
||||
if (cmd->objectList.num > OBJECT_EXCHANGE_BANK_MAX) {
|
||||
__assert("scene_info->object_bank.num <= OBJECT_EXCHANGE_BANK_MAX", "../z_scene.c", 705);
|
||||
}
|
||||
|
||||
while (k < cmd->objectList.num) {
|
||||
nextPtr = func_800982FC(&globalCtx->objectCtx, i, *objectEntry);
|
||||
if (i < OBJECT_EXCHANGE_BANK_MAX - 1)
|
||||
if (i < OBJECT_EXCHANGE_BANK_MAX - 1) {
|
||||
globalCtx->objectCtx.status[i + 1].segment = nextPtr;
|
||||
}
|
||||
k++;
|
||||
objectEntry++;
|
||||
status++;
|
||||
|
||||
@@ -2271,10 +2271,11 @@ void func_8009FE58(GlobalContext* globalCtx) {
|
||||
D_8012A398 += 0.15f + (globalCtx->unk_11D30[1] * 0.001f);
|
||||
}
|
||||
|
||||
if (globalCtx->roomCtx.curRoom.num == 2)
|
||||
if (globalCtx->roomCtx.curRoom.num == 2) {
|
||||
Matrix_Scale(1, sinf(D_8012A398) * 0.8f, 1, MTXMODE_NEW);
|
||||
else
|
||||
} else {
|
||||
Matrix_Scale(1.005f, sinf(D_8012A398) * 0.8f, 1.005f, MTXMODE_NEW);
|
||||
}
|
||||
|
||||
gSPSegment(gfxCtx->polyOpa.p++, 0x0D, Matrix_NewMtx(globalCtx->state.gfxCtx, "../z_scene_table.c", 7809));
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@ void ArmsHook_Update(ArmsHook* this, GlobalContext* globalCtx);
|
||||
void ArmsHook_Draw(ArmsHook* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Arms_Hook_InitVars =
|
||||
{
|
||||
const ActorInit Arms_Hook_InitVars = {
|
||||
ACTOR_ARMS_HOOK,
|
||||
ACTORTYPE_ITEMACTION,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void ArrowFire_Update(ArrowFire* this, GlobalContext* globalCtx);
|
||||
void ArrowFire_Draw(ArrowFire* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Arrow_Fire_InitVars =
|
||||
{
|
||||
const ActorInit Arrow_Fire_InitVars = {
|
||||
ACTOR_ARROW_FIRE,
|
||||
ACTORTYPE_ITEMACTION,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void ArrowIce_Update(ArrowIce* this, GlobalContext* globalCtx);
|
||||
void ArrowIce_Draw(ArrowIce* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Arrow_Ice_InitVars =
|
||||
{
|
||||
const ActorInit Arrow_Ice_InitVars = {
|
||||
ACTOR_ARROW_ICE,
|
||||
ACTORTYPE_ITEMACTION,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void ArrowLight_Update(ArrowLight* this, GlobalContext* globalCtx);
|
||||
void ArrowLight_Draw(ArrowLight* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Arrow_Light_InitVars =
|
||||
{
|
||||
const ActorInit Arrow_Light_InitVars = {
|
||||
ACTOR_ARROW_LIGHT,
|
||||
ACTORTYPE_ITEMACTION,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgBdanObjects_Update(BgBdanObjects* this, GlobalContext* globalCtx);
|
||||
void BgBdanObjects_Draw(BgBdanObjects* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Bdan_Objects_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Bdan_Objects_InitVars = {
|
||||
ACTOR_BG_BDAN_OBJECTS,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgBombwall_Update(BgBombwall* this, GlobalContext* globalCtx);
|
||||
void BgBombwall_Draw(BgBombwall* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Bombwall_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Bombwall_InitVars = {
|
||||
ACTOR_BG_BOMBWALL,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgBowlWall_Update(BgBowlWall* this, GlobalContext* globalCtx);
|
||||
void BgBowlWall_Draw(BgBowlWall* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Bowl_Wall_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Bowl_Wall_InitVars = {
|
||||
ACTOR_BG_BOWL_WALL,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -8,8 +8,7 @@ void BgBreakwall_Destroy(BgBreakwall* this, GlobalContext* globalCtx);
|
||||
void BgBreakwall_Update(BgBreakwall* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Breakwall_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Breakwall_InitVars = {
|
||||
ACTOR_BG_BREAKWALL,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgDdanJd_Update(BgDdanJd* this, GlobalContext* globalCtx);
|
||||
void BgDdanJd_Draw(BgDdanJd* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Ddan_Jd_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Ddan_Jd_InitVars = {
|
||||
ACTOR_BG_DDAN_JD,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgDdanKd_Update(BgDdanKd* this, GlobalContext* globalCtx);
|
||||
void BgDdanKd_Draw(BgDdanKd* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Ddan_Kd_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Ddan_Kd_InitVars = {
|
||||
ACTOR_BG_DDAN_KD,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgDodoago_Update(BgDodoago* this, GlobalContext* globalCtx);
|
||||
void BgDodoago_Draw(BgDodoago* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Dodoago_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Dodoago_InitVars = {
|
||||
ACTOR_BG_DODOAGO,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -8,8 +8,7 @@ void BgDyYoseizo_Destroy(BgDyYoseizo* this, GlobalContext* globalCtx);
|
||||
void BgDyYoseizo_Update(BgDyYoseizo* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Dy_Yoseizo_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Dy_Yoseizo_InitVars = {
|
||||
ACTOR_BG_DY_YOSEIZO,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgGanonOtyuka_Update(BgGanonOtyuka* this, GlobalContext* globalCtx);
|
||||
void BgGanonOtyuka_Draw(BgGanonOtyuka* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Ganon_Otyuka_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Ganon_Otyuka_InitVars = {
|
||||
ACTOR_BG_GANON_OTYUKA,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -70,12 +70,10 @@ static void func_8087828C(BgGateShutter* this, GlobalContext* globalCtx) {
|
||||
if (this->unk_168 == 1 && !(gSaveContext.inf_table[7] & 0x40)) {
|
||||
this->unk_178 = 2;
|
||||
this->actionFunc = (ActorFunc)func_80878300;
|
||||
}
|
||||
else if (this->unk_168 == 2) {
|
||||
} else if (this->unk_168 == 2) {
|
||||
this->unk_178 = 2;
|
||||
this->actionFunc = (ActorFunc)func_80878300;
|
||||
}
|
||||
else if (this->unk_168 < 0) {
|
||||
} else if (this->unk_168 < 0) {
|
||||
this->unk_178 = 2;
|
||||
this->actionFunc = (ActorFunc)func_808783D4;
|
||||
}
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgGjyoBridge_Update(BgGjyoBridge* this, GlobalContext* globalCtx);
|
||||
void BgGjyoBridge_Draw(BgGjyoBridge* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Gjyo_Bridge_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Gjyo_Bridge_InitVars = {
|
||||
ACTOR_BG_GJYO_BRIDGE,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -8,8 +8,7 @@ void BgGndDarkmeiro_Destroy(BgGndDarkmeiro* this, GlobalContext* globalCtx);
|
||||
void BgGndDarkmeiro_Update(BgGndDarkmeiro* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Gnd_Darkmeiro_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Gnd_Darkmeiro_InitVars = {
|
||||
ACTOR_BG_GND_DARKMEIRO,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgGndFiremeiro_Update(BgGndFiremeiro* this, GlobalContext* globalCtx);
|
||||
void BgGndFiremeiro_Draw(BgGndFiremeiro* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Gnd_Firemeiro_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Gnd_Firemeiro_InitVars = {
|
||||
ACTOR_BG_GND_FIREMEIRO,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgGndIceblock_Update(BgGndIceblock* this, GlobalContext* globalCtx);
|
||||
void BgGndIceblock_Draw(BgGndIceblock* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Gnd_Iceblock_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Gnd_Iceblock_InitVars = {
|
||||
ACTOR_BG_GND_ICEBLOCK,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgGndSoulmeiro_Update(BgGndSoulmeiro* this, GlobalContext* globalCtx);
|
||||
void BgGndSoulmeiro_Draw(BgGndSoulmeiro* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Gnd_Soulmeiro_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Gnd_Soulmeiro_InitVars = {
|
||||
ACTOR_BG_GND_SOULMEIRO,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHaka_Update(BgHaka* this, GlobalContext* globalCtx);
|
||||
void BgHaka_Draw(BgHaka* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_InitVars = {
|
||||
ACTOR_BG_HAKA,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHakaGate_Update(BgHakaGate* this, GlobalContext* globalCtx);
|
||||
void BgHakaGate_Draw(BgHakaGate* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_Gate_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_Gate_InitVars = {
|
||||
ACTOR_BG_HAKA_GATE,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHakaHuta_Update(BgHakaHuta* this, GlobalContext* globalCtx);
|
||||
void BgHakaHuta_Draw(BgHakaHuta* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_Huta_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_Huta_InitVars = {
|
||||
ACTOR_BG_HAKA_HUTA,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHakaMeganeBG_Update(BgHakaMeganeBG* this, GlobalContext* globalCtx);
|
||||
void BgHakaMeganeBG_Draw(BgHakaMeganeBG* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_MeganeBG_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_MeganeBG_InitVars = {
|
||||
ACTOR_BG_HAKA_MEGANEBG,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -8,8 +8,7 @@ void BgHakaSgami_Destroy(BgHakaSgami* this, GlobalContext* globalCtx);
|
||||
void BgHakaSgami_Update(BgHakaSgami* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_Sgami_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_Sgami_InitVars = {
|
||||
ACTOR_BG_HAKA_SGAMI,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHakaShip_Update(BgHakaShip* this, GlobalContext* globalCtx);
|
||||
void BgHakaShip_Draw(BgHakaShip* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_Ship_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_Ship_InitVars = {
|
||||
ACTOR_BG_HAKA_SHIP,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHakaTrap_Update(BgHakaTrap* this, GlobalContext* globalCtx);
|
||||
void BgHakaTrap_Draw(BgHakaTrap* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_Trap_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_Trap_InitVars = {
|
||||
ACTOR_BG_HAKA_TRAP,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHakaTubo_Update(BgHakaTubo* this, GlobalContext* globalCtx);
|
||||
void BgHakaTubo_Draw(BgHakaTubo* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_Tubo_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_Tubo_InitVars = {
|
||||
ACTOR_BG_HAKA_TUBO,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHakaWater_Update(BgHakaWater* this, GlobalContext* globalCtx);
|
||||
void BgHakaWater_Draw(BgHakaWater* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_Water_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_Water_InitVars = {
|
||||
ACTOR_BG_HAKA_WATER,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -8,8 +8,7 @@ void BgHakaZou_Destroy(BgHakaZou* this, GlobalContext* globalCtx);
|
||||
void BgHakaZou_Update(BgHakaZou* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Haka_Zou_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Haka_Zou_InitVars = {
|
||||
ACTOR_BG_HAKA_ZOU,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHeavyBlock_Update(BgHeavyBlock* this, GlobalContext* globalCtx);
|
||||
void BgHeavyBlock_Draw(BgHeavyBlock* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Heavy_Block_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Heavy_Block_InitVars = {
|
||||
ACTOR_BG_HEAVY_BLOCK,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanCurtain_Update(BgHidanCurtain* this, GlobalContext* globalCtx);
|
||||
void BgHidanCurtain_Draw(BgHidanCurtain* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Curtain_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Curtain_InitVars = {
|
||||
ACTOR_BG_HIDAN_CURTAIN,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanDalm_Update(BgHidanDalm* this, GlobalContext* globalCtx);
|
||||
void BgHidanDalm_Draw(BgHidanDalm* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Dalm_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Dalm_InitVars = {
|
||||
ACTOR_BG_HIDAN_DALM,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -8,8 +8,7 @@ void BgHidanFirewall_Destroy(BgHidanFirewall* this, GlobalContext* globalCtx);
|
||||
void BgHidanFirewall_Update(BgHidanFirewall* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Firewall_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Firewall_InitVars = {
|
||||
ACTOR_BG_HIDAN_FIREWALL,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanFwbig_Update(BgHidanFwbig* this, GlobalContext* globalCtx);
|
||||
void BgHidanFwbig_Draw(BgHidanFwbig* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Fwbig_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Fwbig_InitVars = {
|
||||
ACTOR_BG_HIDAN_FWBIG,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanHamstep_Update(BgHidanHamstep* this, GlobalContext* globalCtx);
|
||||
void BgHidanHamstep_Draw(BgHidanHamstep* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Hamstep_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Hamstep_InitVars = {
|
||||
ACTOR_BG_HIDAN_HAMSTEP,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanHrock_Update(BgHidanHrock* this, GlobalContext* globalCtx);
|
||||
void BgHidanHrock_Draw(BgHidanHrock* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Hrock_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Hrock_InitVars = {
|
||||
ACTOR_BG_HIDAN_HROCK,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanKousi_Update(BgHidanKousi* this, GlobalContext* globalCtx);
|
||||
void BgHidanKousi_Draw(BgHidanKousi* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Kousi_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Kousi_InitVars = {
|
||||
ACTOR_BG_HIDAN_KOUSI,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanKowarerukabe_Update(BgHidanKowarerukabe* this, GlobalContext* global
|
||||
void BgHidanKowarerukabe_Draw(BgHidanKowarerukabe* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Kowarerukabe_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Kowarerukabe_InitVars = {
|
||||
ACTOR_BG_HIDAN_KOWARERUKABE,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanRock_Update(BgHidanRock* this, GlobalContext* globalCtx);
|
||||
void BgHidanRock_Draw(BgHidanRock* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Rock_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Rock_InitVars = {
|
||||
ACTOR_BG_HIDAN_ROCK,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanRsekizou_Update(BgHidanRsekizou* this, GlobalContext* globalCtx);
|
||||
void BgHidanRsekizou_Draw(BgHidanRsekizou* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Rsekizou_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Rsekizou_InitVars = {
|
||||
ACTOR_BG_HIDAN_RSEKIZOU,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanSekizou_Update(BgHidanSekizou* this, GlobalContext* globalCtx);
|
||||
void BgHidanSekizou_Draw(BgHidanSekizou* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Sekizou_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Sekizou_InitVars = {
|
||||
ACTOR_BG_HIDAN_SEKIZOU,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgHidanSima_Update(BgHidanSima* this, GlobalContext* globalCtx);
|
||||
void BgHidanSima_Draw(BgHidanSima* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Hidan_Sima_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Hidan_Sima_InitVars = {
|
||||
ACTOR_BG_HIDAN_SIMA,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgIceObjects_Update(BgIceObjects* this, GlobalContext* globalCtx);
|
||||
void BgIceObjects_Draw(BgIceObjects* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Ice_Objects_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Ice_Objects_InitVars = {
|
||||
ACTOR_BG_ICE_OBJECTS,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgIceShelter_Update(BgIceShelter* this, GlobalContext* globalCtx);
|
||||
void BgIceShelter_Draw(BgIceShelter* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Ice_Shelter_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Ice_Shelter_InitVars = {
|
||||
ACTOR_BG_ICE_SHELTER,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgIceShutter_Update(BgIceShutter* this, GlobalContext* globalCtx);
|
||||
void BgIceShutter_Draw(BgIceShutter* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Ice_Shutter_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Ice_Shutter_InitVars = {
|
||||
ACTOR_BG_ICE_SHUTTER,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgIceTurara_Update(BgIceTurara* this, GlobalContext* globalCtx);
|
||||
void BgIceTurara_Draw(BgIceTurara* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Ice_Turara_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Ice_Turara_InitVars = {
|
||||
ACTOR_BG_ICE_TURARA,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgIngate_Update(BgIngate* this, GlobalContext* globalCtx);
|
||||
void BgIngate_Draw(BgIngate* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Ingate_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Ingate_InitVars = {
|
||||
ACTOR_BG_INGATE,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJya1flift_Update(BgJya1flift* this, GlobalContext* globalCtx);
|
||||
void BgJya1flift_Draw(BgJya1flift* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_1flift_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_1flift_InitVars = {
|
||||
ACTOR_BG_JYA_1FLIFT,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaBigmirror_Update(BgJyaBigmirror* this, GlobalContext* globalCtx);
|
||||
void BgJyaBigmirror_Draw(BgJyaBigmirror* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Bigmirror_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Bigmirror_InitVars = {
|
||||
ACTOR_BG_JYA_BIGMIRROR,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaBlock_Update(BgJyaBlock* this, GlobalContext* globalCtx);
|
||||
void BgJyaBlock_Draw(BgJyaBlock* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Block_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Block_InitVars = {
|
||||
ACTOR_BG_JYA_BLOCK,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaBombchuiwa_Update(BgJyaBombchuiwa* this, GlobalContext* globalCtx);
|
||||
void BgJyaBombchuiwa_Draw(BgJyaBombchuiwa* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Bombchuiwa_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Bombchuiwa_InitVars = {
|
||||
ACTOR_BG_JYA_BOMBCHUIWA,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaBombiwa_Update(BgJyaBombiwa* this, GlobalContext* globalCtx);
|
||||
void BgJyaBombiwa_Draw(BgJyaBombiwa* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Bombiwa_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Bombiwa_InitVars = {
|
||||
ACTOR_BG_JYA_BOMBIWA,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaCobra_Update(BgJyaCobra* this, GlobalContext* globalCtx);
|
||||
void BgJyaCobra_Draw(BgJyaCobra* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Cobra_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Cobra_InitVars = {
|
||||
ACTOR_BG_JYA_COBRA,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaGoroiwa_Update(BgJyaGoroiwa* this, GlobalContext* globalCtx);
|
||||
void BgJyaGoroiwa_Draw(BgJyaGoroiwa* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Goroiwa_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Goroiwa_InitVars = {
|
||||
ACTOR_BG_JYA_GOROIWA,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaHaheniron_Update(BgJyaHaheniron* this, GlobalContext* globalCtx);
|
||||
void BgJyaHaheniron_Draw(BgJyaHaheniron* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Haheniron_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Haheniron_InitVars = {
|
||||
ACTOR_BG_JYA_HAHENIRON,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaIronobj_Update(BgJyaIronobj* this, GlobalContext* globalCtx);
|
||||
void BgJyaIronobj_Draw(BgJyaIronobj* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Ironobj_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Ironobj_InitVars = {
|
||||
ACTOR_BG_JYA_IRONOBJ,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaLift_Update(BgJyaLift* this, GlobalContext* globalCtx);
|
||||
void BgJyaLift_Draw(BgJyaLift* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Lift_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Lift_InitVars = {
|
||||
ACTOR_BG_JYA_LIFT,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaMegami_Update(BgJyaMegami* this, GlobalContext* globalCtx);
|
||||
void BgJyaMegami_Draw(BgJyaMegami* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Megami_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Megami_InitVars = {
|
||||
ACTOR_BG_JYA_MEGAMI,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgJyaZurerukabe_Update(BgJyaZurerukabe* this, GlobalContext* globalCtx);
|
||||
void BgJyaZurerukabe_Draw(BgJyaZurerukabe* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Jya_Zurerukabe_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Jya_Zurerukabe_InitVars = {
|
||||
ACTOR_BG_JYA_ZURERUKABE,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgMenkuriEye_Update(BgMenkuriEye* this, GlobalContext* globalCtx);
|
||||
void BgMenkuriEye_Draw(BgMenkuriEye* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Menkuri_Eye_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Menkuri_Eye_InitVars = {
|
||||
ACTOR_BG_MENKURI_EYE,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgMizuBwall_Update(BgMizuBwall* this, GlobalContext* globalCtx);
|
||||
void BgMizuBwall_Draw(BgMizuBwall* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Mizu_Bwall_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Mizu_Bwall_InitVars = {
|
||||
ACTOR_BG_MIZU_BWALL,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgMizuMovebg_Update(BgMizuMovebg* this, GlobalContext* globalCtx);
|
||||
void BgMizuMovebg_Draw(BgMizuMovebg* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Mizu_Movebg_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Mizu_Movebg_InitVars = {
|
||||
ACTOR_BG_MIZU_MOVEBG,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgMizuShutter_Update(BgMizuShutter* this, GlobalContext* globalCtx);
|
||||
void BgMizuShutter_Draw(BgMizuShutter* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Mizu_Shutter_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Mizu_Shutter_InitVars = {
|
||||
ACTOR_BG_MIZU_SHUTTER,
|
||||
ACTORTYPE_PROP,
|
||||
ROOM,
|
||||
|
||||
@@ -9,8 +9,7 @@ void BgMizuWater_Update(BgMizuWater* this, GlobalContext* globalCtx);
|
||||
void BgMizuWater_Draw(BgMizuWater* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Mizu_Water_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Mizu_Water_InitVars = {
|
||||
ACTOR_BG_MIZU_WATER,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -8,8 +8,7 @@ void BgMoriBigst_Destroy(BgMoriBigst* this, GlobalContext* globalCtx);
|
||||
void BgMoriBigst_Update(BgMoriBigst* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Mori_Bigst_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Mori_Bigst_InitVars = {
|
||||
ACTOR_BG_MORI_BIGST,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
@@ -8,8 +8,7 @@ void BgMoriElevator_Destroy(BgMoriElevator* this, GlobalContext* globalCtx);
|
||||
void BgMoriElevator_Update(BgMoriElevator* this, GlobalContext* globalCtx);
|
||||
|
||||
/*
|
||||
const ActorInit Bg_Mori_Elevator_InitVars =
|
||||
{
|
||||
const ActorInit Bg_Mori_Elevator_InitVars = {
|
||||
ACTOR_BG_MORI_ELEVATOR,
|
||||
ACTORTYPE_BG,
|
||||
ROOM,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user