From f05f2881db33af716493a291c365cbfb0e94fca6 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Fri, 7 Dec 2012 20:10:05 +0000 Subject: [PATCH] -fixed shutdown issues of wiiflow using the wii power button --- source/loader/sys.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/loader/sys.c b/source/loader/sys.c index 860ff2aa..6af12058 100644 --- a/source/loader/sys.c +++ b/source/loader/sys.c @@ -19,16 +19,13 @@ #include "wiiuse/wpad.h" /* Variables */ -bool reset = false; -bool shutdown = false; -u8 ExitOption = 0; +volatile bool reset = false; +volatile bool shutdown = false; +volatile u8 ExitOption = 0; const char *NeekPath = NULL; -extern void __exception_closeall(); - void __Wpad_PowerCallback() { - /* Poweroff console */ shutdown = 1; }