diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-07-14 22:09:07 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-07-14 22:09:07 -0700 |
| commit | 882aef9fdcf3b9688285a7a574cb691193e15abe (patch) | |
| tree | f051e0a2fc28acbc4800e88212155f94453727ac /src/code_08078778.c | |
| parent | fc0727243d21238f018d2ec317a590547521d18e (diff) | |
code_08077B98
Diffstat (limited to 'src/code_08078778.c')
| -rw-r--r-- | src/code_08078778.c | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/src/code_08078778.c b/src/code_08078778.c new file mode 100644 index 00000000..78c54099 --- /dev/null +++ b/src/code_08078778.c @@ -0,0 +1,88 @@ +#include "global.h" +#include "entity.h" +#include "functions.h" + +typedef struct { + u8 unk[4]; + u32 unk2; + u32 unk4; +} Unk_struct; + +extern Unk_struct gUnk_03003DF0[]; + +void sub_08078778(Entity* ent) { + sub_0807887C(ent, 1, 0); +} + +void sub_08078784(Entity* ent, u32 arg1) { + sub_0807887C(ent, 1, arg1); +} + +void sub_08078790(Entity* ent, u32 arg1) { + sub_0807887C(ent, 2, arg1); +} + +void sub_0807879C(Entity* ent) { + sub_0807887C(ent, 7, 0); +} + +void sub_080787A8(Entity* ent, u32 arg1) { + sub_0807887C(ent, 7, arg1); +} + +void sub_080787B4(Entity* ent) { + sub_0807887C(ent, 9, 0); +} + +void sub_080787C0(Entity* ent) { + sub_0807887C(ent, 10, 0); +} + +void sub_080787CC(Entity* ent) { + sub_0807887C(ent, 5, 0); +} + +s32 sub_080787D8(Entity *ent) +{ + s32 iVar1; + + iVar1 = sub_0807887C(ent, 8, 0); + if (iVar1 >= 0) { + gUnk_03003DF0[iVar1].unk[10] = 0xbe; + } + return iVar1; +} + +s32 sub_08078800(Entity *ent) +{ + s32 iVar1; + + iVar1 = sub_0807887C(ent, 6, 0); + if (iVar1 >= 0) { + gUnk_03003DF0[iVar1].unk[10] = 0xbe; + } + return iVar1; +} + +s32 sub_08078828(Entity *ent) +{ + s32 iVar1; + + iVar1 = sub_0807887C(ent, 3, 0); + if (iVar1 >= 0) { + gUnk_03003DF0[iVar1].unk[10] = 0xbe; + } + return iVar1; +} + +void sub_08078850(u32 arg0, u32 arg1, u32 arg2, u32 arg3) +{ + s32 iVar1; + + iVar1 = sub_08078904(); + if (iVar1 >= 0) { + gUnk_03003DF0[iVar1].unk[8] = arg1; + gUnk_03003DF0[iVar1].unk[10] = arg2; + *(&gUnk_03003DF0[iVar1].unk4 + 1) = arg3; + } +}
\ No newline at end of file |
