Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
m_Do_Reset.h
Go to the documentation of this file.
1#ifndef M_DO_M_DO_RESET_H
2#define M_DO_M_DO_RESET_H
3
4#include "dolphin/types.h"
5
6void mDoRst_reset(int, u32, int);
7void mDoRst_resetCallBack(int, void*);
8
9extern bool SyncWidthSound;
11
12struct mDoRstData {
13 /* 0x00 */ int mReset;
14 /* 0x04 */ int mResetPrepare;
15 /* 0x08 */ int m3ButtonReset;
16 /* 0x0C */ int m3ButtonResetPort;
17 /* 0x10 */ bool mShutdown;
18 /* 0x11 */ bool mReturnToMenu;
19 /* 0x12 */ u8 mLogoScnFlag;
20 /* 0x13 */ u8 mProgSeqFlag;
21 /* 0x14 */ u8 mProgChgFlag;
22 /* 0x15 */ u8 mWarningDispFlag;
23}; // Size = 0x18
24
25class mDoRst {
26public:
27 static void offReturnToMenu() { mResetData->mReturnToMenu = false; }
28 static void offShutdown() { mResetData->mShutdown = false; }
36 static void offReset() {
37 mResetData->mReset = 0;
39 }
44 static BOOL isShutdown() { return mResetData->mShutdown; }
45 static int isReset() { return mResetData->mReset; }
47 static int is3ButtonReset() { return mResetData->m3ButtonReset; }
48 static void onReset() { mResetData->mReset = 1; }
49 static void onReturnToMenu() { mResetData->mReturnToMenu = true; }
50 static void on3ButtonReset() { mResetData->m3ButtonReset = 1; }
51 static void onShutdown() { mResetData->mShutdown = true; }
52
53 static mDoRstData* getResetData() { return mResetData; }
55
57};
58
59extern bool mDoDvdErr_initialized;
60
61#endif /* M_DO_M_DO_RESET_H */
T cLib_calcTimer(T *value)
Definition c_lib.h:74
Definition m_Do_Reset.h:25
static void offReset()
Definition m_Do_Reset.h:36
static mDoRstData * mResetData
Definition m_Do_Reset.h:56
static void onReturnToMenu()
Definition m_Do_Reset.h:49
static u8 getWarningDispFlag()
Definition m_Do_Reset.h:42
static int get3ButtonResetPort()
Definition m_Do_Reset.h:46
static BOOL isReturnToMenu()
Definition m_Do_Reset.h:43
static void set3ButtonResetPort(int port)
Definition m_Do_Reset.h:33
static void setProgChgFlag(u8 flag)
Definition m_Do_Reset.h:30
static void offShutdown()
Definition m_Do_Reset.h:28
static BOOL isShutdown()
Definition m_Do_Reset.h:44
static int is3ButtonReset()
Definition m_Do_Reset.h:47
static int isReset()
Definition m_Do_Reset.h:45
static void onShutdown()
Definition m_Do_Reset.h:51
static void setProgSeqFlag(u8 flag)
Definition m_Do_Reset.h:31
static void on3ButtonReset()
Definition m_Do_Reset.h:50
static u8 getLogoScnFlag()
Definition m_Do_Reset.h:40
static void offReturnToMenu()
Definition m_Do_Reset.h:27
static void setLogoScnFlag(u8 flag)
Definition m_Do_Reset.h:32
static void off3ButtonReset()
Definition m_Do_Reset.h:34
static u8 getProgSeqFlag()
Definition m_Do_Reset.h:41
static void onReset()
Definition m_Do_Reset.h:48
static void offResetPrepare()
Definition m_Do_Reset.h:35
static void setWarningDispFlag(u8 flag)
Definition m_Do_Reset.h:29
static void setResetData(mDoRstData *rstData)
Definition m_Do_Reset.h:54
static mDoRstData * getResetData()
Definition m_Do_Reset.h:53
static volatile BOOL flag
Definition dspproc.cpp:20
void mDoRst_resetCallBack(int, void *)
Definition m_Do_Reset.cpp:125
u8 sDefaultDirection
Definition m_Do_Reset.cpp:161
bool SyncWidthSound
Definition m_Do_Reset.cpp:160
bool mDoDvdErr_initialized
Definition m_Do_Reset.cpp:172
void mDoRst_reset(int, u32, int)
Definition m_Do_Reset.cpp:66
Definition m_Do_Reset.h:12
u8 mProgChgFlag
Definition m_Do_Reset.h:21
int mReset
Definition m_Do_Reset.h:13
int m3ButtonResetPort
Definition m_Do_Reset.h:16
u8 mLogoScnFlag
Definition m_Do_Reset.h:19
int m3ButtonReset
Definition m_Do_Reset.h:15
bool mReturnToMenu
Definition m_Do_Reset.h:18
u8 mProgSeqFlag
Definition m_Do_Reset.h:20
bool mShutdown
Definition m_Do_Reset.h:17
int mResetPrepare
Definition m_Do_Reset.h:14
u8 mWarningDispFlag
Definition m_Do_Reset.h:22
int BOOL
Definition types.h:27
unsigned long u32
Definition types.h:10
unsigned char u8
Definition types.h:8