summaryrefslogtreecommitdiff
path: root/include/d/d_sc_title.h
blob: 37bc145c7e7f2f94b6bcc88fc40629ce7f9b5910 (plain)
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
#ifndef D_SC_TITLE_H
#define D_SC_TITLE_H

#include "d/d_sc_game.h"
#include "s/s_FPhase.h"
#include "s/s_State.hpp"

class dScTitle_c : public dScGame_c {
public:
    dScTitle_c();
    virtual ~dScTitle_c();

    STATE_VIRTUAL_OVERRIDE_FUNC_DECLARE(dScTitle_c, dScGame_c, Stanby);
    STATE_VIRTUAL_OVERRIDE_FUNC_DECLARE(dScTitle_c, dScGame_c, Action);

    static dScTitle_c *sInstance;

    static void setLbl_80575787(bool v) {
        lbl_80575787 = v;
    }

    static u8 lbl_80575785;
    static u8 lbl_80575786;
    static u8 lbl_80575787;

    static void loadTitleScreen(u32 params);
    static void setSomethingSkbRelated();

private:
    static bool sPreventEmptyFilesTitle;
    static bool checkAllSaveFilesEmpty();

    virtual int create() override;
    virtual int execute() override;
    virtual int doDelete() override;
    virtual int draw() override;

    static void *dvdCallback(void *data);

    static sFPhase<dScTitle_c>::phaseCallback sCallbacks[];

    /* 0x2A4 */ mDvd_toMainRam_normal_c *mpSkbArc;
    /* 0x2A8 */ mDvd_toMainRam_normal_c *mpSkbFont;
    /* 0x2AC */ u8 field_0x2AC;
    /* 0x2AD */ u8 field_0x2AD;
};

#endif