1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
|
/**
* d_s_logo.cpp
* Game Boot Logo's Display
*/
#include "d/s/d_s_logo.h"
#include "JSystem/JKernel/JKRAram.h"
#include "JSystem/JKernel/JKRExpHeap.h"
#include "c/c_dylink.h"
#include "d/com/d_com_inf_game.h"
#include "d/d_item.h"
#include "d/map/d_map_path_dmap.h"
#include "m_Do/m_Do_Reset.h"
#include "m_Do/m_Do_controller_pad.h"
#include "m_Do/m_Do_graphic.h"
#include "m_Do/m_Do_machine.h"
/* 803C2E38-803C2E44 01FF58 000C+00 1/1 0/0 0/0 .data cNullVec__6Z2Calc */
static u8 cNullVec__6Z2Calc[12] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
};
/* 804510E8-804510F0 0005E8 0008+00 1/1 0/0 0/0 .sbss g_LogHIO */
static dLog_HIO_c g_LogHIO;
typedef void (dScnLogo_c::*execFunc)();
static execFunc l_execFunc[16] = {
&dScnLogo_c::warningInDraw, &dScnLogo_c::warningDispDraw, &dScnLogo_c::warningOutDraw,
&dScnLogo_c::nintendoInDraw, &dScnLogo_c::nintendoOutDraw, &dScnLogo_c::dolbyInDraw,
&dScnLogo_c::dolbyOutDraw, &dScnLogo_c::dolbyOutDraw2, &dScnLogo_c::progInDraw,
&dScnLogo_c::progSelDraw, &dScnLogo_c::progOutDraw, &dScnLogo_c::progSetDraw,
&dScnLogo_c::progSet2Draw, &dScnLogo_c::progChangeDraw, &dScnLogo_c::dvdWaitDraw,
&dScnLogo_c::nextSceneChange,
};
/* 802560A4-802560B4 2509E4 0010+00 1/1 0/0 0/0 .text __ct__10dLog_HIO_cFv */
dLog_HIO_c::dLog_HIO_c() {}
/* 802560B4-802560F8 2509F4 0044+00 1/1 0/0 0/0 .text preLoad_dyl_create__10dScnLogo_cFv
*/
void dScnLogo_c::preLoad_dyl_create() {
m_preLoad_dylPhase = new request_of_phase_process_class[14];
memset(m_preLoad_dylPhase, 0, sizeof(request_of_phase_process_class) * 14);
}
/* 802560F8-8025611C 250A38 0024+00 1/1 0/0 0/0 .text preLoad_dyl_remove__10dScnLogo_cFv
*/
void dScnLogo_c::preLoad_dyl_remove() {
delete[] m_preLoad_dylPhase;
}
/* 80399FE0-80399FFC 026640 001C+00 1/1 0/0 0/0 .rodata l_preLoad_dylKeyTbl */
static s16 const l_preLoad_dylKeyTbl[14] = {
0x02DC, 0x02CE, 0x0221, 0x00F2, 0x021B, 0x02F4, 0x0139,
0x015A, 0x02E4, 0x00FE, 0x0308, 0x030F, 0x00FF, 0x013F,
};
/* 8025611C-80256198 250A5C 007C+00 2/2 0/0 0/0 .text preLoad_dyl__10dScnLogo_cFv */
bool dScnLogo_c::preLoad_dyl() {
bool ret = true;
for (int i = 0; i < 14; i++) {
int phase_state = cDylPhs::Link(&m_preLoad_dylPhase[i], l_preLoad_dylKeyTbl[i]);
if (phase_state != cPhs_COMPLEATE_e) {
ret = false;
}
}
return ret;
}
/* 80256198-80256210 250AD8 0078+00 1/1 0/0 0/0 .text checkProgSelect__10dScnLogo_cFv */
void dScnLogo_c::checkProgSelect() {
if (mDoRst::getProgSeqFlag() == 0 && VIGetDTVStatus() != 0) {
if (isProgressiveMode() || mDoCPd_c::getHoldB(PAD_1)) {
field_0x20a = 1;
field_0x209 = 0;
}
}
}
/* 80256210-80256264 250B50 0054+00 1/1 0/0 0/0 .text draw__10dScnLogo_cFv */
int dScnLogo_c::draw() {
cLib_calcTimer<u16>(&mTimer);
(this->*l_execFunc[mExecCommand])();
return 1;
}
/* 80256264-8025631C 250BA4 00B8+00 1/0 0/0 0/0 .text progInDraw__10dScnLogo_cFv */
void dScnLogo_c::progInDraw() {
dComIfGd_set2DOpa(mProgressiveChoice);
dComIfGd_set2DOpa(mProgressiveYes);
dComIfGd_set2DOpa(mProgressiveNo);
if (mTimer == 0) {
mExecCommand = EXEC_PROG_SEL;
mTimer = 600;
field_0x20e = 30;
field_0x210 = field_0x20e;
field_0x212 = 0;
field_0x20b = 0;
}
}
/* 8025631C-802568E0 250C5C 05C4+00 1/0 0/0 0/0 .text progSelDraw__10dScnLogo_cFv */
void dScnLogo_c::progSelDraw() {
dComIfGd_set2DOpa(mProgressiveChoice);
dComIfGd_set2DOpa(mProgressiveYes);
dComIfGd_set2DOpa(mProgressiveNo);
if (field_0x20b == 0) {
if (field_0x209 == 0) {
if (mDoCPd_c::getHoldRight(PAD_1) || mDoCPd_c::getStickX(PAD_1) > 0.5f) {
mDoAud_seStart(Z2SE_SY_MENU_CURSOR_COMMON, NULL, 0, 0);
field_0x209 = 1;
field_0x20e = 30;
field_0x210 = field_0x20e;
field_0x212 = 0;
}
} else {
if (mDoCPd_c::getHoldLeft(PAD_1) || mDoCPd_c::getStickX(PAD_1) < -0.5f) {
mDoAud_seStart(Z2SE_SY_MENU_CURSOR_COMMON, NULL, 0, 0);
field_0x209 = 0;
field_0x20e = 30;
field_0x210 = field_0x20e;
field_0x212 = 0;
}
}
if (mDoCPd_c::getTrigA(PAD_1) || mTimer == 0) {
if (field_0x209 == 0) {
mProgressiveSel->getPicture()->changeTexture(mProgressivePro, 0);
setProgressiveMode(1);
mDoRst::setProgChgFlag(1);
mDoAud_seStart(Z2SE_SY_CURSOR_OK, NULL, 0, 0);
} else {
mProgressiveSel->getPicture()->changeTexture(mProgressiveInter, 0);
setProgressiveMode(0);
mDoAud_seStart(Z2SE_SY_CURSOR_OK, NULL, 0, 0);
}
if (mTimer > 540) {
field_0x20b = 1;
field_0x214 = mTimer - 540;
} else {
mExecCommand = EXEC_PROG_OUT;
mTimer = 30;
mDoGph_gInf_c::startFadeOut(mTimer);
field_0x20e = 30;
field_0x210 = field_0x20e;
field_0x212 = 0;
}
mDoRst::setProgSeqFlag(1);
}
} else {
if (field_0x214 == 0) {
mExecCommand = EXEC_PROG_OUT;
mTimer = 30;
mDoGph_gInf_c::startFadeOut(30);
field_0x20e = 30;
field_0x210 = field_0x20e;
field_0x212 = 0;
} else {
field_0x214--;
}
}
f32 alpha = (f32)field_0x210 / (f32)field_0x20e;
if (field_0x212 != 0) {
alpha = 1.0f - alpha;
}
u8 r = alpha * 255.0f;
u8 g = alpha * 200.0f;
if (field_0x209 != 0) {
mProgressiveYes->getPicture()->setWhite(JUtility::TColor(160, 160, 160, 255));
mProgressiveYes->getPicture()->setBlack(JUtility::TColor(0, 0, 0, 0));
mProgressiveNo->getPicture()->setWhite(JUtility::TColor(255, 200, 0, 255));
mProgressiveNo->getPicture()->setBlack(JUtility::TColor(r, g, 0, 0));
} else {
mProgressiveYes->getPicture()->setWhite(JUtility::TColor(255, 200, 0, 255));
mProgressiveYes->getPicture()->setBlack(JUtility::TColor(r, g, 0, 0));
mProgressiveNo->getPicture()->setWhite(JUtility::TColor(160, 160, 160, 255));
mProgressiveNo->getPicture()->setBlack(JUtility::TColor(0, 0, 0, 0));
}
if (field_0x210 == 0) {
field_0x210 = field_0x20e;
field_0x212 ^= 1;
} else {
field_0x210--;
}
}
/* 802568E0-80256A3C 251220 015C+00 1/0 0/0 0/0 .text progOutDraw__10dScnLogo_cFv */
void dScnLogo_c::progOutDraw() {
dComIfGd_set2DOpa(mProgressiveChoice);
dComIfGd_set2DOpa(mProgressiveYes);
dComIfGd_set2DOpa(mProgressiveNo);
if (mTimer == 0) {
if (field_0x218 != 0 && field_0x209 == 0) {
mExecCommand = EXEC_PROG_CHANGE;
mTimer = 150;
} else if (field_0x218 == 0 && field_0x209 != 0) {
if (mDoRst::getWarningDispFlag() != 0) {
mTimer = 90;
mExecCommand = EXEC_NINTENDO_IN;
} else {
mTimer = 120;
mExecCommand = EXEC_WARNING_IN;
}
mDoGph_gInf_c::startFadeIn(30);
} else {
mExecCommand = EXEC_PROG_SET;
mTimer = 150;
mDoGph_gInf_c::startFadeIn(30);
}
}
}
/* 80256A3C-80256AC0 25137C 0084+00 1/0 0/0 0/0 .text progSetDraw__10dScnLogo_cFv */
void dScnLogo_c::progSetDraw() {
dComIfGd_set2DOpa(mProgressiveSel);
if (mTimer == 0) {
mExecCommand = EXEC_PROG_SET2;
mTimer = 30;
mDoGph_gInf_c::startFadeOut(30);
}
}
/* 80256AC0-80256B3C 251400 007C+00 1/0 0/0 0/0 .text progSet2Draw__10dScnLogo_cFv */
void dScnLogo_c::progSet2Draw() {
dComIfGd_set2DOpa(mProgressiveSel);
if (mTimer == 0) {
if (getProgressiveMode() != 0) {
mTimer = 150;
} else {
mTimer = 30;
}
mExecCommand = EXEC_PROG_CHANGE;
}
}
/* 80256B3C-80256BF4 25147C 00B8+00 1/0 0/0 0/0 .text progChangeDraw__10dScnLogo_cFv */
void dScnLogo_c::progChangeDraw() {
if (getProgressiveMode() != 0 && mTimer == 90 && field_0x209 == 0) {
setRenderMode();
}
if (mTimer == 0) {
if (mDoRst::getWarningDispFlag() != 0) {
mTimer = 90;
mExecCommand = EXEC_NINTENDO_IN;
} else {
mTimer = 120;
mExecCommand = EXEC_WARNING_IN;
}
mDoGph_gInf_c::startFadeIn(30);
}
}
/* 80256BF4-80256C68 251534 0074+00 1/0 0/0 0/0 .text warningInDraw__10dScnLogo_cFv */
void dScnLogo_c::warningInDraw() {
dComIfGd_set2DOpa(mWarning);
if (mTimer == 0) {
mExecCommand = EXEC_WARNING_DISP;
mTimer = 3510;
field_0x20e = 30;
field_0x210 = field_0x20e;
field_0x212 = 1;
}
}
/* 80256C68-80256DC4 2515A8 015C+00 1/0 0/0 0/0 .text warningDispDraw__10dScnLogo_cFv */
void dScnLogo_c::warningDispDraw() {
dComIfGd_set2DOpa(mWarning);
dComIfGd_set2DOpa(mWarningStart);
f32 alpha = (f32)field_0x210 / (f32)field_0x20e;
if (field_0x212 != 0) {
alpha = 1.0f - alpha;
}
mWarningStart->setAlpha(255.0f * alpha);
if (field_0x210 == 0) {
field_0x210 = field_0x20e;
field_0x212 ^= 1;
} else {
field_0x210--;
}
if (mTimer == 0 || mDoCPd_c::getTrig(PAD_1) &
(CButton::A | CButton::B | CButton::X | CButton::Y | CButton::START |
CButton::Z | CButton::L | CButton::R | CButton::DPAD_LEFT |
CButton::DPAD_RIGHT | CButton::DPAD_DOWN | CButton::DPAD_UP))
{
mExecCommand = EXEC_WARNING_OUT;
mTimer = 30;
mDoGph_gInf_c::startFadeOut(30);
mDoRst::setWarningDispFlag(1);
}
}
/* 80256DC4-80256E48 251704 0084+00 1/0 0/0 0/0 .text warningOutDraw__10dScnLogo_cFv */
void dScnLogo_c::warningOutDraw() {
dComIfGd_set2DOpa(mWarning);
if (mTimer == 0) {
mTimer = 90;
mExecCommand = EXEC_NINTENDO_IN;
mDoGph_gInf_c::startFadeIn(30);
}
}
/* 80256E48-80256ECC 251788 0084+00 1/0 0/0 0/0 .text nintendoInDraw__10dScnLogo_cFv */
void dScnLogo_c::nintendoInDraw() {
dComIfGd_set2DOpa(mNintendoLogo);
if (mTimer == 0) {
mExecCommand = EXEC_NINTENDO_OUT;
mTimer = 30;
mDoGph_gInf_c::startFadeOut(30);
}
}
/* 80256ECC-80256F50 25180C 0084+00 1/0 0/0 0/0 .text nintendoOutDraw__10dScnLogo_cFv */
void dScnLogo_c::nintendoOutDraw() {
dComIfGd_set2DOpa(mNintendoLogo);
if (mTimer == 0) {
mExecCommand = EXEC_DOLBY_IN;
mTimer = 90;
mDoGph_gInf_c::startFadeIn(30);
}
}
/* 80256F50-80256FD4 251890 0084+00 1/0 0/0 0/0 .text dolbyInDraw__10dScnLogo_cFv */
void dScnLogo_c::dolbyInDraw() {
dComIfGd_set2DOpa(mDolbyLogo);
if (mTimer == 0) {
mExecCommand = EXEC_DOLBY_OUT;
mTimer = 30;
mDoGph_gInf_c::startFadeOut(30);
}
}
/* 80256FD4-80257058 251914 0084+00 1/0 0/0 0/0 .text dolbyOutDraw__10dScnLogo_cFv */
void dScnLogo_c::dolbyOutDraw() {
dComIfGd_set2DOpa(mDolbyLogo);
if (mTimer == 0) {
mExecCommand = EXEC_DOLBY_OUT2;
mTimer = 30;
mDoGph_gInf_c::startFadeIn(30);
}
}
/* 80257058-80257070 251998 0018+00 1/0 0/0 0/0 .text dolbyOutDraw2__10dScnLogo_cFv */
void dScnLogo_c::dolbyOutDraw2() {
if (mTimer == 0) {
mExecCommand = EXEC_DVD_WAIT;
}
}
/* 80257070-80257284 2519B0 0214+00 1/0 0/0 0/0 .text dvdWaitDraw__10dScnLogo_cFv */
void dScnLogo_c::dvdWaitDraw() {
if (!dComIfG_syncAllObjectRes()) {
if (mpField0Command->sync() && mpAlAnmCommand->sync() && mpFmapResCommand->sync() &&
mpDmapResCommand->sync() && mpCollectResCommand->sync() && mpItemIconCommand->sync() &&
mpRingResCommand->sync() && mpPlayerNameCommand->sync() &&
mpItemInfResCommand->sync() && mpButtonCommand->sync() && mpCardIconCommand->sync() &&
mpBmgResCommand->sync() && mpMsgComCommand->sync() && mpMsgResCommand[0]->sync() &&
mpMsgResCommand[1]->sync() && mpMsgResCommand[2]->sync() &&
mpMsgResCommand[3]->sync() && mpMsgResCommand[4]->sync() &&
mpMsgResCommand[5]->sync() && mpMsgResCommand[6]->sync() && mpFontResCommand->sync() &&
mpMain2DCommand->sync() && mpRubyResCommand->sync() && mParticleCommand->sync() &&
mItemTableCommand->sync() && mEnemyItemCommand->sync() && preLoad_dyl())
{
mDoRst::setLogoScnFlag(0);
mDoRst::setProgChgFlag(0);
mExecCommand = EXEC_SCENE_CHANGE;
}
}
}
/* 80257284-802572B8 251BC4 0034+00 1/0 0/0 0/0 .text nextSceneChange__10dScnLogo_cFv */
void dScnLogo_c::nextSceneChange() {
if (!mDoRst::isReset()) {
dComIfG_changeOpeningScene(this, PROC_OPENING_SCENE);
}
}
/* 802572B8-80257910 251BF8 0658+00 1/1 0/0 0/0 .text __dt__10dScnLogo_cFv */
dScnLogo_c::~dScnLogo_c() {
if (mDoRst::isReset()) {
if (mDoAud_zelAudio_c::isInitFlag()) {
Z2AudioMgr::getInterface()->resetProcess(5, true);
}
mDoRst_reset(0, 0x80000000, 0);
}
delete mNintendoLogo;
delete mWarning;
delete mWarningStart;
delete mDolbyLogo;
delete mProgressiveChoice;
delete mProgressiveYes;
delete mProgressiveNo;
delete mProgressiveSel;
preLoad_dyl_remove();
dComIfG_deleteObjectResMain("LogoUs");
field_0x1d4->destroy();
field_0x1d0->destroy();
JKRFree(buffer);
dComIfGp_particle_createCommon(mParticleCommand->getMemAddress());
dComIfGp_setFieldMapArchive2(mpField0Command->getArchive());
dComIfGp_setAnmArchive(mpAlAnmCommand->getArchive());
dComIfGp_setFmapResArchive(mpFmapResCommand->getArchive());
dComIfGp_setDmapResArchive(mpDmapResCommand->getArchive());
dComIfGp_setCollectResArchive(mpCollectResCommand->getArchive());
dComIfGp_setItemIconArchive(mpItemIconCommand->getArchive());
dComIfGp_setAllMapArchive(NULL);
dComIfGp_setRingResArchive(mpRingResCommand->getArchive());
dComIfGp_setNameResArchive(mpPlayerNameCommand->getArchive());
dComIfGp_setDemoMsgArchive(mpItemInfResCommand->getArchive());
dComIfGp_setMeterButtonArchive(mpButtonCommand->getArchive());
dComIfGp_setErrorResArchive(NULL);
dComIfGp_setCardIconResArchive(mpCardIconCommand->getArchive());
dComIfGp_setMsgDtArchive(0, mpBmgResCommand->getArchive());
dComIfGp_setMsgCommonArchive(mpMsgComCommand->getArchive());
for (int i = 0; i < 7; i++) {
dComIfGp_setMsgArchive(i, mpMsgResCommand[i]->getArchive());
}
dComIfGp_setFontArchive(mpFontResCommand->getArchive());
dComIfGp_setRubyArchive(mpRubyResCommand->getArchive());
dComIfGp_setMain2DArchive(mpMain2DCommand->getArchive());
mpField0Command->destroy();
mpAlAnmCommand->destroy();
mpFmapResCommand->destroy();
mpDmapResCommand->destroy();
mpCollectResCommand->destroy();
mpItemIconCommand->destroy();
mpRingResCommand->destroy();
mpPlayerNameCommand->destroy();
mpItemInfResCommand->destroy();
mpButtonCommand->destroy();
mpCardIconCommand->destroy();
mpBmgResCommand->destroy();
mpMsgComCommand->destroy();
for (int i = 0; i < 7; i++) {
mpMsgResCommand[i]->destroy();
}
mpFontResCommand->destroy();
mpMain2DCommand->destroy();
mpRubyResCommand->destroy();
mParticleCommand->destroy();
JKRAramHeap* aram_heap = JKRAram::getAramHeap();
u32 free_size = aram_heap->getTotalFreeSize();
mDoExt_getMesgFont();
mDoExt_getSubFont();
mDoExt_getRubyFont();
mDoExt_setAraCacheSize(free_size - aram_heap->getTotalFreeSize());
dComIfGp_setItemTable(mItemTableCommand->getMemAddress());
mItemTableCommand->destroy();
dEnemyItem_c::setItemData((u8*)mEnemyItemCommand->getMemAddress());
mEnemyItemCommand->destroy();
dDlst_shadowControl_c::setSimpleTex((ResTIMG*)dComIfG_getObjectRes("Always", 0x4A));
dTres_c::createWork();
dMpath_c::createWork();
}
/* 80257910-802579BC 252250 00AC+00 1/0 0/0 0/0 .text phase_0__FP10dScnLogo_c */
static int phase_0(dScnLogo_c* i_this) {
mDoGph_gInf_c::setFadeColor(*(JUtility::TColor*)&g_blackColor);
dComIfGp_particle_create();
i_this->buffer = mDoExt_getGameHeap()->alloc(0x340000, -0x10);
i_this->field_0x1d0 = JKRExpHeap::create(i_this->buffer, 0x340000, NULL, false);
i_this->field_0x1d4 = JKRExpHeap::create(0x130000, i_this->field_0x1d0, false);
return cPhs_NEXT_e;
}
/* 802579BC-80257A70 2522FC 00B4+00 1/0 0/0 0/0 .text phase_1__FP10dScnLogo_c */
static int phase_1(dScnLogo_c* i_this) {
if (!cDyl_InitAsyncIsDone()) {
return cPhs_INIT_e;
}
if (!mDoAud_zelAudio_c::isInitFlag() || Z2AudioMgr::getInterface()->checkFirstWaves()) {
return cPhs_INIT_e;
}
dComIfG_setObjectRes("LogoUs", (u8)0, i_this->field_0x1d0);
mDoRst::setLogoScnFlag(1);
archiveHeap->dump_sort();
return cPhs_NEXT_e;
}
/* 80257A70-80257AB4 2523B0 0044+00 1/0 0/0 0/0 .text phase_2__FP10dScnLogo_c */
static int phase_2(dScnLogo_c* i_this) {
if (dComIfG_syncAllObjectRes()) {
return cPhs_INIT_e;
} else {
return cPhs_COMPLEATE_e;
}
}
/* 80257AB4-80257AE0 2523F4 002C+00 1/1 0/0 0/0 .text
* resLoad__FP30request_of_phase_process_classP10dScnLogo_c */
static int resLoad(request_of_phase_process_class* i_phase, dScnLogo_c* i_this) {
static int (*l_method[3])(void*) = {(int (*)(void*))phase_0, (int (*)(void*))phase_1,
(int (*)(void*))phase_2};
return dComLbG_PhaseHandler(i_phase, l_method, i_this);
}
/* 80257AE0-80257C64 252420 0184+00 1/1 0/0 0/0 .text create__10dScnLogo_cFv */
int dScnLogo_c::create() {
int phase_state = resLoad(&field_0x1c4, this);
if (phase_state != cPhs_COMPLEATE_e) {
return phase_state;
}
mpHeap = mDoExt_setCurrentHeap(field_0x1d4);
logoInitGC();
mpHeap->becomeCurrentHeap();
dvdDataLoad();
Z2AudioMgr::getInterface()->loadStaticWaves();
mDoGph_gInf_c::setTickRate((OS_BUS_CLOCK / 4) / 60);
mDoGph_gInf_c::waitBlanking(0);
field_0x20a = 0;
mDoGph_gInf_c::startFadeIn(30);
checkProgSelect();
if (field_0x20a != 0) {
mExecCommand = EXEC_PROG_IN;
mTimer = 30;
field_0x218 = getProgressiveMode();
} else {
if (mDoRst::getWarningDispFlag()) {
mTimer = 90;
mExecCommand = EXEC_NINTENDO_IN;
} else {
mTimer = 120;
mExecCommand = EXEC_WARNING_IN;
}
mDoRst::setProgSeqFlag(1);
}
JUTGamePad::clearResetOccurred();
JUTGamePad::setResetCallback(mDoRst_resetCallBack, NULL);
mDoRst::offReset();
mDoRst::offResetPrepare();
return phase_state;
}
/* 80257C64-80257FEC 2525A4 0388+00 1/1 0/0 0/0 .text logoInitGC__10dScnLogo_cFv */
void dScnLogo_c::logoInitGC() {
ResTIMG* nintendoImg = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 4);
mNintendoLogo = new dDlst_2D_c(nintendoImg, 117, 154, 376, 104, 255);
mNintendoLogo->getPicture()->setWhite(JUtility::TColor(220, 0, 0, 255));
ResTIMG* dolbyImg = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 3);
mDolbyLogo = new dDlst_2D_c(dolbyImg, 189, 150, 232, 112, 255);
ResTIMG* warningImg = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 10);
mWarning = new dDlst_2D_c(warningImg, 0, 0, 608, 448, 255);
ResTIMG* warnStartImg = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 11);
mWarningStart = new dDlst_2D_c(warnStartImg, 0, 359, 608, 48, 255);
ResTIMG* progChoiceImg = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 5);
mProgressiveChoice = new dDlst_2D_c(progChoiceImg, 113, 281, 416, 72, 255);
ResTIMG* progYesImg = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 9);
mProgressiveYes = new dDlst_2D_c(progYesImg, 211, 372, 80, 32, 255);
mProgressiveYes->getPicture()->setWhite(JUtility::TColor(160, 160, 160, 255));
ResTIMG* progNoImg = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 7);
mProgressiveNo = new dDlst_2D_c(progNoImg, 350, 372, 80, 32, 255);
mProgressiveNo->getPicture()->setWhite(JUtility::TColor(160, 160, 160, 255));
mProgressivePro = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 8);
mProgressiveInter = (ResTIMG*)dComIfG_getObjectRes("LogoUs", 6);
mProgressiveSel = new dDlst_2D_c(mProgressivePro, 153, 309, 336, 88, 255);
}
/* 80257FEC-80258420 25292C 0434+00 1/1 0/0 0/0 .text dvdDataLoad__10dScnLogo_cFv */
void dScnLogo_c::dvdDataLoad() {
dComIfG_setObjectRes("Always", (u8)0, NULL);
archiveHeap->dump_sort();
dComIfG_setObjectRes("Alink", (u8)0, NULL);
mpField0Command = mDoDvdThd_mountXArchive_c::create(
"/res/FieldMap/Field0.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpAlAnmCommand =
mDoDvdThd_mountXArchive_c::create("/res/Object/AlAnm.arc", 0, JKRArchive::MOUNT_ARAM, NULL);
mpFmapResCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/fmapres.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpDmapResCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/dmapres.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpCollectResCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/clctres.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpItemIconCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/itemicon.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpRingResCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/ringres.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpPlayerNameCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/playerName.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpItemInfResCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/itmInfRes.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpButtonCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/button.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpCardIconCommand = mDoDvdThd_mountXArchive_c::create(
"/res/CardIcon/cardicon.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpBmgResCommand =
mDoDvdThd_mountXArchive_c::create("/res/Msgus/bmgres.arc", 0, JKRArchive::MOUNT_MEM, NULL);
mpMsgComCommand = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/msgcom.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpMsgResCommand[0] = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/msgres00.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpMsgResCommand[1] = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/msgres01.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpMsgResCommand[2] = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/msgres02.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpMsgResCommand[3] = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/msgres03.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpMsgResCommand[4] = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/msgres04F.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpMsgResCommand[5] = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/msgres05.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpMsgResCommand[6] = mDoDvdThd_mountXArchive_c::create(
"/res/Layout/msgres06.arc", 0, JKRArchive::MOUNT_ARAM, mDoExt_getJ2dHeap());
mpMain2DCommand =
mDoDvdThd_mountXArchive_c::create("/res/Layout/main2D.arc", 0, JKRArchive::MOUNT_MEM, NULL);
mpFontResCommand = mDoDvdThd_mountXArchive_c::create("/res/Fontus/fontres.arc", 0,
JKRArchive::MOUNT_MEM, NULL);
mpRubyResCommand = mDoDvdThd_mountXArchive_c::create("/res/Fontus/rubyres.arc", 0,
JKRArchive::MOUNT_MEM, NULL);
mParticleCommand = mDoDvdThd_toMainRam_c::create("/res/Particle/common.jpc", 0,
dComIfGp_particle_getResHeap());
mItemTableCommand = mDoDvdThd_toMainRam_c::create("/res/ItemTable/item_table.bin", 0, NULL);
mEnemyItemCommand = mDoDvdThd_toMainRam_c::create("/res/ItemTable/enemy_table.bin", 0, NULL);
preLoad_dyl_create();
preLoad_dyl();
}
/* 80258420-80258444 252D60 0024+00 1/0 0/0 0/0 .text dScnLogo_Create__FP11scene_class */
static int dScnLogo_Create(scene_class* i_this) {
return (new (i_this) dScnLogo_c())->create();
}
/* 80258444-80258484 252D84 0040+00 1/0 0/0 0/0 .text dScnLogo_Execute__FP10dScnLogo_c */
static int dScnLogo_Execute(dScnLogo_c* i_this) {
if (mDoRst::isReset()) {
fopScnM_ChangeReq(i_this, PROC_LOGO_SCENE, 0, 5);
}
return 1;
}
/* 80258484-802584A8 252DC4 0024+00 1/0 0/0 0/0 .text dScnLogo_Draw__FP10dScnLogo_c */
static int dScnLogo_Draw(dScnLogo_c* i_this) {
i_this->draw();
return 1;
}
/* 802584A8-802584D0 252DE8 0028+00 1/0 0/0 0/0 .text dScnLogo_Delete__FP10dScnLogo_c */
static int dScnLogo_Delete(dScnLogo_c* i_this) {
i_this->~dScnLogo_c();
return 1;
}
/* 802584D0-802584D8 252E10 0008+00 1/0 0/0 0/0 .text dScnLogo_IsDelete__FP10dScnLogo_c
*/
static int dScnLogo_IsDelete(dScnLogo_c* i_this) {
return 1;
}
/* 802584D8-802584FC 252E18 0024+00 1/1 0/0 0/0 .text setProgressiveMode__10dScnLogo_cFUc
*/
void dScnLogo_c::setProgressiveMode(u8 mode) {
OSSetProgressiveMode(mode);
}
/* 802584FC-80258520 252E3C 0024+00 3/3 0/0 0/0 .text getProgressiveMode__10dScnLogo_cFv
*/
u8 dScnLogo_c::getProgressiveMode() {
return OSGetProgressiveMode();
}
/* 80258520-8025854C 252E60 002C+00 1/1 0/0 0/0 .text isProgressiveMode__10dScnLogo_cFv
*/
bool dScnLogo_c::isProgressiveMode() {
return OSGetProgressiveMode() == 1;
}
/* 8025854C-8025855C 252E8C 0010+00 1/1 0/0 0/0 .text setRenderMode__10dScnLogo_cFv */
void dScnLogo_c::setRenderMode() {
mDoMch_render_c::setProgressiveMode();
}
/* 8025855C-802585A4 252E9C 0048+00 2/1 0/0 0/0 .text __dt__10dLog_HIO_cFv */
dLog_HIO_c::~dLog_HIO_c() {}
/* 803C2FD0-803C2FE4 -00001 0014+00 1/0 0/0 0/0 .data l_dScnLogo_Method */
static dScnLogo_Method l_dScnLogo_Method[5] = {
(dScnLogo_Method)dScnLogo_Create,
dScnLogo_Delete,
dScnLogo_Execute,
dScnLogo_IsDelete,
dScnLogo_Draw,
};
/* 803C2FE4-803C300C -00001 0028+00 0/0 0/0 1/0 .data g_profile_LOGO_SCENE */
extern scene_process_profile_definition g_profile_LOGO_SCENE = {
fpcLy_ROOT_e,
1,
fpcPi_CURRENT_e,
PROC_LOGO_SCENE,
&g_fpcNd_Method.mBase,
sizeof(dScnLogo_c),
0,
0,
&g_fopScn_Method.mBase,
(process_method_class*)&l_dScnLogo_Method,
NULL,
};
|