mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 05:32:47 +00:00
Added menu on home button
This commit is contained in:
parent
5172bf9205
commit
7f65846499
@ -7,7 +7,7 @@
|
|||||||
#include "virtual.h"
|
#include "virtual.h"
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
|
|
||||||
#define VERSION "0.6.7"
|
#define VERSION "0.6.8"
|
||||||
|
|
||||||
#define N_PANES 2
|
#define N_PANES 2
|
||||||
#define IMG_DRV "789I"
|
#define IMG_DRV "789I"
|
||||||
@ -909,9 +909,16 @@ u32 GodMode() {
|
|||||||
} else if (pad_state & BUTTON_POWER) {
|
} else if (pad_state & BUTTON_POWER) {
|
||||||
exit_mode = GODMODE_EXIT_POWEROFF;
|
exit_mode = GODMODE_EXIT_POWEROFF;
|
||||||
break;
|
break;
|
||||||
} else if (pad_state & BUTTON_HOME) {
|
} else if (pad_state & BUTTON_HOME) { // Home menu
|
||||||
exit_mode = GODMODE_EXIT_REBOOT;
|
const char* optionstr[2] = { "Poweroff system", "Reboot system" };
|
||||||
break;
|
u32 user_select = ShowSelectPrompt(2, optionstr, "HOME button pressed.\nSelect action:" );
|
||||||
|
if (user_select == 1) {
|
||||||
|
exit_mode = GODMODE_EXIT_POWEROFF;
|
||||||
|
break;
|
||||||
|
} else if (user_select == 2) {
|
||||||
|
exit_mode = GODMODE_EXIT_REBOOT;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user