Shutdown the Wii-Remote when pressing the Power-Button

This commit is contained in:
ardi@ist-einmalig.de 2009-05-03 19:38:18 +00:00
parent c152f5c3d4
commit 7f1c6a3a9c

View File

@ -2,6 +2,7 @@
#include <ogcsys.h> #include <ogcsys.h>
#include "sys.h" #include "sys.h"
#include "wpad.h"
/* Constants */ /* Constants */
#define CERTS_LEN 0x280 #define CERTS_LEN 0x280
@ -41,6 +42,8 @@ void Sys_Reboot(void)
void Sys_Shutdown(void) void Sys_Shutdown(void)
{ {
/* Disconnect WPAD */
Wpad_Disconnect();
/* Poweroff console */ /* Poweroff console */
if(CONF_GetShutdownMode() == CONF_SHUTDOWN_IDLE) { if(CONF_GetShutdownMode() == CONF_SHUTDOWN_IDLE) {
s32 ret; s32 ret;