Shutdown the Wii-Remote when pressing the Power-Button
This commit is contained in:
parent
c152f5c3d4
commit
7f1c6a3a9c
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
#include <ogcsys.h>
|
||||
|
||||
#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;
|
||||
|
|
Loading…
Add table
Reference in a new issue