NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
d_reset.hpp
1#pragma once
2#include <lib/egg/heap/eggHeap.hpp>
3#include <lib/egg/fader/eggColorFader.hpp>
4#include <types.h>
5
7namespace dReset {
8
10 class Manage_c {
11 public:
12
23
33
34 void SetSoftResetFinish();
35 void SetSoftResetScene();
36 void PostDeleteScene();
37
38 EGG::Heap *mpHeap;
39 EGG::ColorFader *mpColorFader;
40
42
46
47 int mPrevMode;
49
50 bool mHbmReset;
51 bool mHbmReturnMenu;
52
53 bool mResetCallbackCalled;
54 bool mPowerCallbackCalled;
55 bool mInteriorReturnDataManager;
56
57 u32 mHbmResetTypeMaybe;
58 u32 mHbmPowerOffTypeMaybe;
59 u32 mSoftResetStateMaybe;
60 bool mSoftResetPermitted;
61 bool mUnknown2D;
62
63 bool mSoftResetRequested;
64 bool mFadeOutRequested;
65 bool mUnknown30;
66
67 void *mpAudioResetFunc;
68 void *mpAudioExitFunc;
69
70 bool mBootCompleted;
71 bool mExecutingFade;
72 bool mUnknown3E;
73
75 };
76
77} // namespace dReset
System reset management class.
Definition d_reset.hpp:10
Exec_e
The possible hard reset procedures.
Definition d_reset.hpp:25
@ RESTART_GAME
[Unused]. Reboots the game's DOL.
Definition d_reset.hpp:26
@ RETURN_DATA_MANAGER
Returns to the Wii Menu's Data Manager.
Definition d_reset.hpp:29
@ RETURN_WII_MENU
Returns to the Wii Menu.
Definition d_reset.hpp:28
@ REBOOT_SYSTEM
[Unused]. Reboots the entire console.
Definition d_reset.hpp:27
@ NONE
Does not execute any reset procedure.
Definition d_reset.hpp:31
@ POWER_OFF
Turns off the console.
Definition d_reset.hpp:30
static dReset::Manage_c * GetInstance()
Gets a pointer to the instance of this class.
int mModeProc
The game's current running state. See Mode_e.
Definition d_reset.hpp:41
Mode_e
The game's possible running states.
Definition d_reset.hpp:14
@ NORMAL
The game is running regularly.
Definition d_reset.hpp:15
@ FATAL_ERROR
The game cannot read the NAND and cannot proceed.
Definition d_reset.hpp:19
@ HBM_WAIT
The home menu is open.
Definition d_reset.hpp:17
@ SAFETY_WAIT
The game is about to execute the hard reset procedure indicated in mExecMode.
Definition d_reset.hpp:20
@ DISK_WAIT
The game cannot read the DVD and cannot proceed.
Definition d_reset.hpp:18
@ SOFT_RESET
The game is being soft reset (from the Home Menu).
Definition d_reset.hpp:16
@ NO_CHANGE
The game's running state hasn't changed [value used in mModeInit].
Definition d_reset.hpp:21
int mExecMode
The hard reset procedure to be executed. See Exec_e.
Definition d_reset.hpp:48
int mModeInit
The running state the game's about to switch to. See Mode_e.
Definition d_reset.hpp:45