mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-17 08:49:17 +01:00
Shutdown the Wii-Remote when pressing the Power-Button
This commit is contained in:
parent
c152f5c3d4
commit
7f1c6a3a9c
@ -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…
Reference in New Issue
Block a user