summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-06-03 22:12:23 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2017-06-03 22:12:23 -0400
commit82373556f8ff16a6b532011c04c9128be814d160 (patch)
treec292bc60ee1298767345fab4c30fb18252e6696f /src
parent88181cf35b084689ee6b1a2dd2bdd4b32cbd4e80 (diff)
Another set of small subroutines in decoration
Diffstat (limited to 'src')
-rwxr-xr-xsrc/decoration.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/decoration.c b/src/decoration.c
index 5387ad27d..58537ec0e 100755
--- a/src/decoration.c
+++ b/src/decoration.c
@@ -1869,3 +1869,41 @@ void sub_8100494(u8 taskId)
}
}
}
+
+void sub_810065C(u8 taskId)
+{
+ MenuZeroFillWindowRect(0, 0, 29, 19);
+ gSprites[gUnknown_020391A8].data7 = 0;
+ gTasks[taskId].data[10] = 0;
+ gTasks[taskId].func = sub_8100494;
+}
+
+void sub_81006A8(u8 taskId)
+{
+ if ((gMain.newKeys & A_BUTTON) || (gMain.newKeys & B_BUTTON))
+ {
+ sub_810065C(taskId);
+ }
+}
+
+void sub_81006D0(struct UnkStruct_02038900 *unk_02038900)
+{
+ u16 i;
+ for (i=0; i<0x800; i++)
+ {
+ unk_02038900->unk_084[i] = 0;
+ }
+ for (i=0; i<0x40; i++)
+ {
+ unk_02038900->unk_004[i] = 0;
+ }
+}
+
+void sub_810070C(u16 *a0, u16 a1)
+{
+ u16 i;
+ for (i=0; i<16; i++)
+ {
+ a0[i] = ((u16 *)gMapHeader.mapData->primaryTileset->palettes)[16 * a1 + i];
+ }
+}