mirror of
https://github.com/Druthulu/BFM-decomp
synced 2026-09-27 22:45:39 -04:00
feat(phase-31): propagate func_8017EBC8 (gate lane)
This commit is contained in:
@@ -14733,3 +14733,10 @@ groups:
|
||||
func: DEFINE_func_80182630
|
||||
vram: 0x80182630
|
||||
binaries: [ov_SC02_000, ov_SC02_003]
|
||||
- id: E_func_8017EBC8
|
||||
tier: h_exact
|
||||
hash: d0406d9f27465af1dda3221896b77435add3e084
|
||||
source: src/shared/engine_core.h
|
||||
func: DEFINE_func_8017EBC8
|
||||
vram: 0x8017EBC8
|
||||
binaries: [ov_SC03_126, ov_SC04_021, ov_SC05_019]
|
||||
|
||||
@@ -3365,20 +3365,7 @@ INCLUDE_ASM("asm/ov_SC03_126/nonmatchings/ov_SC03_126_jr_8017D5C0", func_8017EB4
|
||||
|
||||
#include "common.h"
|
||||
|
||||
extern s32 func_801399F0(s32 a0);
|
||||
extern void func_80139914(s32 a0);
|
||||
extern void func_80171928(void *a0);
|
||||
|
||||
void func_8017EBC8(u8 *a0) {
|
||||
if ((*(u16 *)(a0 + 0xB8) & 0x8000) == 0) {
|
||||
return;
|
||||
}
|
||||
if (func_801399F0(*(s32 *)(a0 + 0x198)) != 0) {
|
||||
func_80139914(*(s32 *)(a0 + 0x198));
|
||||
*(s32 *)(a0 + 0x198) = 0;
|
||||
func_80171928(a0);
|
||||
}
|
||||
}
|
||||
DEFINE_func_8017EBC8() /* dedup: shared engine-core @0x8017EBC8 (src/shared) */
|
||||
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC03_126/nonmatchings/ov_SC03_126_jr_8017D5C0", func_8017EC2C);
|
||||
|
||||
@@ -3336,7 +3336,7 @@ INCLUDE_ASM("asm/ov_SC04_021/nonmatchings/ov_SC04_021_jr_8017D5C0", func_8017EAC
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC04_021/nonmatchings/ov_SC04_021_jr_8017D5C0", func_8017EB4C);
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC04_021/nonmatchings/ov_SC04_021_jr_8017D5C0", func_8017EBC8);
|
||||
DEFINE_func_8017EBC8() /* dedup: shared engine-core @0x8017EBC8 (src/shared) */
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC04_021/nonmatchings/ov_SC04_021_jr_8017D5C0", func_8017EC2C);
|
||||
|
||||
|
||||
@@ -3336,7 +3336,7 @@ INCLUDE_ASM("asm/ov_SC05_019/nonmatchings/ov_SC05_019_jr_8017D5C0", func_8017EAC
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC05_019/nonmatchings/ov_SC05_019_jr_8017D5C0", func_8017EB4C);
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC05_019/nonmatchings/ov_SC05_019_jr_8017D5C0", func_8017EBC8);
|
||||
DEFINE_func_8017EBC8() /* dedup: shared engine-core @0x8017EBC8 (src/shared) */
|
||||
|
||||
INCLUDE_ASM("asm/ov_SC05_019/nonmatchings/ov_SC05_019_jr_8017D5C0", func_8017EC2C);
|
||||
|
||||
|
||||
@@ -60835,6 +60835,21 @@
|
||||
} \
|
||||
}
|
||||
|
||||
#define DEFINE_func_8017EBC8() \
|
||||
extern s32 func_801399F0(s32 a0); \
|
||||
extern void func_80139914(s32 a0); \
|
||||
extern void func_80171928(void *a0); \
|
||||
void func_8017EBC8(u8 *a0) { \
|
||||
if ((*(u16 *)(a0 + 0xB8) & 0x8000) == 0) { \
|
||||
return; \
|
||||
} \
|
||||
if (func_801399F0(*(s32 *)(a0 + 0x198)) != 0) { \
|
||||
func_80139914(*(s32 *)(a0 + 0x198)); \
|
||||
*(s32 *)(a0 + 0x198) = 0; \
|
||||
func_80171928(a0); \
|
||||
} \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#define DEFINE_func_80128EA8() \
|
||||
@@ -151075,4 +151090,19 @@
|
||||
} \
|
||||
}
|
||||
|
||||
#define DEFINE_func_8017EBC8() \
|
||||
extern s32 func_801399F0(s32 a0); \
|
||||
extern void func_80139914(s32 a0); \
|
||||
extern void func_80171928(void *a0); \
|
||||
void func_8017EBC8(u8 *a0) { \
|
||||
if ((*(u16 *)(a0 + 0xB8) & 0x8000) == 0) { \
|
||||
return; \
|
||||
} \
|
||||
if (func_801399F0(*(s32 *)(a0 + 0x198)) != 0) { \
|
||||
func_80139914(*(s32 *)(a0 + 0x198)); \
|
||||
*(s32 *)(a0 + 0x198) = 0; \
|
||||
func_80171928(a0); \
|
||||
} \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user