summaryrefslogtreecommitdiff
path: root/src/code_08078778.c
diff options
context:
space:
mode:
author21aslade <21aslade@go.dsdmail.net>2020-08-23 13:24:39 -0600
committer21aslade <21aslade@go.dsdmail.net>2020-08-23 13:24:39 -0600
commitbc0a593f971551f2f4a19cbc564e0ac01c525b39 (patch)
tree8b169718d28d3693f513da65523a3a3f424d4c00 /src/code_08078778.c
parentf065af482d2ac0db4c7d14233195f58c45876981 (diff)
parent8ab5503804436ee7e3ef202f596cd0fe5626a2a9 (diff)
Merge branch 'master' of https://github.com/zeldaret/tmc
Diffstat (limited to 'src/code_08078778.c')
-rw-r--r--src/code_08078778.c88
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..7d181f1d
--- /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;
+ }
+}