mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-19 08:21:54 +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 <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;
|
||||||
|
Loading…
Reference in New Issue
Block a user