mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2024-11-22 08:09:18 +01:00
Reload on crashes
This commit is contained in:
parent
f2c91f208e
commit
e2098ad049
@ -23,6 +23,7 @@
|
|||||||
CONFIG gConfig;
|
CONFIG gConfig;
|
||||||
|
|
||||||
// Prototypes
|
// Prototypes
|
||||||
|
extern void __exception_setreload(int t);
|
||||||
extern u32 WaitButtons (void);
|
extern u32 WaitButtons (void);
|
||||||
void CheckPassword (void);
|
void CheckPassword (void);
|
||||||
void SetDefaultConfig (void);
|
void SetDefaultConfig (void);
|
||||||
@ -146,6 +147,8 @@ void Disclaimer(void)
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
__exception_setreload(10);
|
||||||
|
|
||||||
ES_GetBoot2Version(&boot2version);
|
ES_GetBoot2Version(&boot2version);
|
||||||
if(!AHBPROT_DISABLED)
|
if(!AHBPROT_DISABLED)
|
||||||
{
|
{
|
||||||
@ -156,6 +159,7 @@ int main(int argc, char **argv)
|
|||||||
if(!loadIOS(249)) loadIOS(36);
|
if(!loadIOS(249)) loadIOS(36);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialize subsystems */
|
/* Initialize subsystems */
|
||||||
Sys_Init();
|
Sys_Init();
|
||||||
|
|
||||||
@ -170,7 +174,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* Initialize Wiimote and GC Controller */
|
/* Initialize Wiimote and GC Controller */
|
||||||
Wpad_Init();
|
Wpad_Init();
|
||||||
PAD_Init ();
|
PAD_Init();
|
||||||
WiiDRC_Init();
|
WiiDRC_Init();
|
||||||
WIILIGHT_Init();
|
WIILIGHT_Init();
|
||||||
|
|
||||||
@ -181,10 +185,10 @@ int main(int argc, char **argv)
|
|||||||
SetDefaultConfig ();
|
SetDefaultConfig ();
|
||||||
|
|
||||||
// Read the config file
|
// Read the config file
|
||||||
ReadConfigFile (WM_CONFIG_FILE_PATH);
|
ReadConfigFile(WM_CONFIG_FILE_PATH);
|
||||||
|
|
||||||
// Check password
|
// Check password
|
||||||
CheckPassword ();
|
CheckPassword();
|
||||||
|
|
||||||
/* Menu loop */
|
/* Menu loop */
|
||||||
Menu_Loop();
|
Menu_Loop();
|
||||||
|
Loading…
Reference in New Issue
Block a user