From 7f1c6a3a9c7d68f45e7d12ed1b780b6ee503af3b Mon Sep 17 00:00:00 2001 From: "ardi@ist-einmalig.de" Date: Sun, 3 May 2009 19:38:18 +0000 Subject: [PATCH] Shutdown the Wii-Remote when pressing the Power-Button --- source/sys.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/sys.c b/source/sys.c index 10d02d3c..3be1583c 100644 --- a/source/sys.c +++ b/source/sys.c @@ -2,6 +2,7 @@ #include #include "sys.h" +#include "wpad.h" /* Constants */ #define CERTS_LEN 0x280 @@ -41,6 +42,8 @@ void Sys_Reboot(void) void Sys_Shutdown(void) { + /* Disconnect WPAD */ + Wpad_Disconnect(); /* Poweroff console */ if(CONF_GetShutdownMode() == CONF_SHUTDOWN_IDLE) { s32 ret;