Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void ov62_02232778(UnkStruct_ov62_02233310 *param0, UnkStruct_0208C06C *param1, MessageLoader *param2, const UnkStruct_ov62_02248CDC *param3, int param4, int param5, Strbuf *param6) {
- int v0;
- Window *v1;
- Strbuf *v2;
- Strbuf *v3;
- Strbuf *v4;
- Strbuf *v5;
- Strbuf *v6;
- UnkStruct_0200B358 *v7;
- int v8 = 0;
- u64 v9 = 0;
- int v10[30] = {0};
- Strbuf *v11;
- v1 = ¶m0->unk_18;
- param0->unk_04 = param3->unk_04;
- param0->unk_00 = 0;
- param0->unk_0C = 0;
- param0->unk_10 = param3->unk_24;
- param0->unk_28 = param3;
- if (param2) {
- param0->unk_34 = param2;
- } else {
- param0->unk_34 = param1->unk_14.unk_34;
- }
- param0->unk_14 = (param0->unk_04 / param0->unk_10) + 1;
- if (param0->unk_04 < param0->unk_10) {
- param0->unk_10 = param0->unk_04;
- param0->unk_38.unk_08 = param0->unk_10 - 1;
- param0->unk_38.unk_0C = param0->unk_10 - 1;
- }
- param0->unk_38.unk_08 = param0->unk_10 / 2;
- param0->unk_38.unk_0C = param0->unk_10 / 2;
- sub_0201A7A0(v1);
- BGL_AddWindow(param1->unk_14.unk_10, v1, param3->unk_20, param3->unk_0C, param3->unk_10, param3->unk_14, param3->unk_18, 14, param3->unk_1C);
- BGL_FillWindow(v1, 0x00);
- v7 = ov62_02231690(102);
- {
- u64 v12 = param0->unk_28->unk_00[0].unk_08;
- int v13[] = {16, 12, 20};
- v9 = v12;
- v10[0] = v8;
- for (v0 = 1; v0 < v13[param5]; v0++) {
- u64 v14 = param0->unk_28->unk_00[v0].unk_08;
- if (v14 == v9) {
- v10[v0] = v8;
- } else {
- v9 = v14;
- v10[v0] = v0;
- v8 = v0;
- }
- }
- }
- for (v0 = 0; v0 < param0->unk_10; v0++) {
- v3 = MessageLoader_GetNewStrbuf(param1->unk_14.unk_34, 88 + param5);
- v4 = Strbuf_Init(255, 102);
- v6 = Strbuf_Init(255, 102);
- v11 = Strbuf_Init(255, 102);
- switch (param5) {
- case 0:
- {
- int v15 = param0->unk_28->unk_00[v0].unk_04;
- v5 = MessageLoader_GetNewStrbuf(param0->unk_34, v15);
- }
- break;
- case 1:
- {
- int v16 = param0->unk_28->unk_00[v0].unk_04;
- v5 = Strbuf_Init(255, 102);
- Strbuf_FormatInt(v5, v16, 2, 1, 1);
- }
- break;
- case 2:
- {
- u16 v17[255];
- int v18 = param0->unk_28->unk_00[v0].unk_04;
- v5 = Strbuf_Init(255, 102);
- MessageLoader_GetSpeciesName(v18, 102, v17);
- Strbuf_CopyChars(v5, v17);
- }
- break;
- }
- {
- u64 v19 = param0->unk_28->unk_00[v0].unk_08;
- Strbuf_FormatU64(v11, v19, ov62_0223438C(v19), 0, 1);
- }
- Strbuf_FormatInt(v4, v10[v0] + 1, 2, 1, 1);
- sub_0200B48C(v7, 0, v4, 0, 1, 2);
- sub_0200B48C(v7, 1, v5, 0, 1, 2);
- sub_0200C388(v7, v6, v3);
- sub_0201D78C(v1, 0, v6, 0, v0 * (16 * param0->unk_28->unk_08), (0xff), ((u32)(((15 & (0xff)) << 16) | ((13 & (0xff)) << 8) | ((0 & (0xff)) << 0))), NULL);
- if (param0->unk_28->unk_08 == 2) {
- int v20 = sub_02002D7C(0, v11, 0);
- sub_0201D78C(v1, 0, v11, 16, (v0 * (16 * param0->unk_28->unk_08)) + 16, (0xff), ((u32)(((15 & (0xff)) << 16) | ((13 & (0xff)) << 8) | ((0 & (0xff)) << 0))), NULL);
- if (param6) {
- sub_0201D78C(v1, 0, param6, 16 + v20, (v0 * (16 * param0->unk_28->unk_08)) + 16, (0xff), ((u32)(((15 & (0xff)) << 16) | ((13 & (0xff)) << 8) | ((0 & (0xff)) << 0))), NULL);
- }
- }
- Strbuf_Free(v3);
- Strbuf_Free(v4);
- Strbuf_Free(v5);
- Strbuf_Free(v6);
- Strbuf_Free(v11);
- sub_0200C41C(v7);
- }
- sub_0201A9A4(v1);
- sub_0200B3F0(v7);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement