NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
dReset::Manage_c Class Reference

#include <game/bases/d_reset.hpp>

Description

System reset management class.

Definition at line 10 of file d_reset.hpp.

Public Types

enum  Mode_e {
  NORMAL ,
  SOFT_RESET ,
  HBM_WAIT ,
  DISK_WAIT ,
  FATAL_ERROR ,
  SAFETY_WAIT ,
  NO_CHANGE
}
 The game's possible running states. More...
 
enum  Exec_e {
  RESTART_GAME ,
  REBOOT_SYSTEM ,
  RETURN_WII_MENU ,
  RETURN_DATA_MANAGER ,
  POWER_OFF ,
  NONE
}
 The possible hard reset procedures. More...
 

Public Member Functions

void SetSoftResetFinish ()
 
void SetSoftResetScene ()
 
void PostDeleteScene ()
 

Static Public Member Functions

static dReset::Manage_cGetInstance ()
 Gets a pointer to the instance of this class.
 

Public Attributes

EGG::HeapmpHeap
 
EGG::ColorFadermpColorFader
 
int mModeProc
 The game's current running state. See Mode_e.
 
int mModeInit
 The running state the game's about to switch to. See Mode_e.
 
int mPrevMode
 
int mExecMode
 The hard reset procedure to be executed. See Exec_e.
 
bool mHbmReset
 
bool mHbmReturnMenu
 
bool mResetCallbackCalled
 
bool mPowerCallbackCalled
 
bool mInteriorReturnDataManager
 
u32 mHbmResetTypeMaybe
 
u32 mHbmPowerOffTypeMaybe
 
u32 mSoftResetStateMaybe
 
bool mSoftResetPermitted
 
bool mUnknown2D
 
bool mSoftResetRequested
 
bool mFadeOutRequested
 
bool mUnknown30
 
void * mpAudioResetFunc
 
void * mpAudioExitFunc
 
bool mBootCompleted
 
bool mExecutingFade
 
bool mUnknown3E
 

Member Enumeration Documentation

◆ Mode_e

The game's possible running states.

Enumerator
NORMAL 

The game is running regularly.

SOFT_RESET 

The game is being soft reset (from the Home Menu).

HBM_WAIT 

The home menu is open.

DISK_WAIT 

The game cannot read the DVD and cannot proceed.

FATAL_ERROR 

The game cannot read the NAND and cannot proceed.

SAFETY_WAIT 

The game is about to execute the hard reset procedure indicated in mExecMode.

NO_CHANGE 

The game's running state hasn't changed [value used in mModeInit].

Definition at line 14 of file d_reset.hpp.

◆ Exec_e

The possible hard reset procedures.

Enumerator
RESTART_GAME 

[Unused]. Reboots the game's DOL.

REBOOT_SYSTEM 

[Unused]. Reboots the entire console.

RETURN_WII_MENU 

Returns to the Wii Menu.

RETURN_DATA_MANAGER 

Returns to the Wii Menu's Data Manager.

POWER_OFF 

Turns off the console.

NONE 

Does not execute any reset procedure.

Definition at line 25 of file d_reset.hpp.

Member Function Documentation

◆ GetInstance()

static dReset::Manage_c * dReset::Manage_c::GetInstance ( )
static

Gets a pointer to the instance of this class.

Member Data Documentation

◆ mpHeap

EGG::Heap* dReset::Manage_c::mpHeap

Definition at line 38 of file d_reset.hpp.

◆ mpColorFader

EGG::ColorFader* dReset::Manage_c::mpColorFader

Definition at line 39 of file d_reset.hpp.

◆ mModeProc

int dReset::Manage_c::mModeProc

The game's current running state. See Mode_e.

Definition at line 41 of file d_reset.hpp.

◆ mModeInit

int dReset::Manage_c::mModeInit

The running state the game's about to switch to. See Mode_e.

The state does not change if this is set to Mode_e::NO_CHANGE.

Definition at line 45 of file d_reset.hpp.

◆ mPrevMode

int dReset::Manage_c::mPrevMode

Definition at line 47 of file d_reset.hpp.

◆ mExecMode

int dReset::Manage_c::mExecMode

The hard reset procedure to be executed. See Exec_e.

Definition at line 48 of file d_reset.hpp.

◆ mHbmReset

bool dReset::Manage_c::mHbmReset

Definition at line 50 of file d_reset.hpp.

◆ mHbmReturnMenu

bool dReset::Manage_c::mHbmReturnMenu

Definition at line 51 of file d_reset.hpp.

◆ mResetCallbackCalled

bool dReset::Manage_c::mResetCallbackCalled

Definition at line 53 of file d_reset.hpp.

◆ mPowerCallbackCalled

bool dReset::Manage_c::mPowerCallbackCalled

Definition at line 54 of file d_reset.hpp.

◆ mInteriorReturnDataManager

bool dReset::Manage_c::mInteriorReturnDataManager

Definition at line 55 of file d_reset.hpp.

◆ mHbmResetTypeMaybe

u32 dReset::Manage_c::mHbmResetTypeMaybe

Definition at line 57 of file d_reset.hpp.

◆ mHbmPowerOffTypeMaybe

u32 dReset::Manage_c::mHbmPowerOffTypeMaybe

Definition at line 58 of file d_reset.hpp.

◆ mSoftResetStateMaybe

u32 dReset::Manage_c::mSoftResetStateMaybe

Definition at line 59 of file d_reset.hpp.

◆ mSoftResetPermitted

bool dReset::Manage_c::mSoftResetPermitted

Definition at line 60 of file d_reset.hpp.

◆ mUnknown2D

bool dReset::Manage_c::mUnknown2D

Definition at line 61 of file d_reset.hpp.

◆ mSoftResetRequested

bool dReset::Manage_c::mSoftResetRequested

Definition at line 63 of file d_reset.hpp.

◆ mFadeOutRequested

bool dReset::Manage_c::mFadeOutRequested

Definition at line 64 of file d_reset.hpp.

◆ mUnknown30

bool dReset::Manage_c::mUnknown30

Definition at line 65 of file d_reset.hpp.

◆ mpAudioResetFunc

void* dReset::Manage_c::mpAudioResetFunc

Definition at line 67 of file d_reset.hpp.

◆ mpAudioExitFunc

void* dReset::Manage_c::mpAudioExitFunc

Definition at line 68 of file d_reset.hpp.

◆ mBootCompleted

bool dReset::Manage_c::mBootCompleted

Definition at line 70 of file d_reset.hpp.

◆ mExecutingFade

bool dReset::Manage_c::mExecutingFade

Definition at line 71 of file d_reset.hpp.

◆ mUnknown3E

bool dReset::Manage_c::mUnknown3E

Definition at line 72 of file d_reset.hpp.