From a76c943c015e3e5025ba81f2055caa466dad8719 Mon Sep 17 00:00:00 2001 From: Aurora Date: Sun, 17 Apr 2016 19:34:35 +0200 Subject: [PATCH] Reinstated the L+SELECT payload --- loader/source/buttons.h | 17 +++++++++-------- loader/source/main.c | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/loader/source/buttons.h b/loader/source/buttons.h index faace53..d032df8 100644 --- a/loader/source/buttons.h +++ b/loader/source/buttons.h @@ -2,11 +2,12 @@ #include "types.h" -#define HID_PAD (*(vu32 *)0x10146000 ^ 0xFFF) -#define BUTTON_RIGHT (1 << 4) -#define BUTTON_LEFT (1 << 5) -#define BUTTON_UP (1 << 6) -#define BUTTON_DOWN (1 << 7) -#define BUTTON_X (1 << 10) -#define BUTTON_Y (1 << 11) -#define BUTTON_R1 (1 << 8) \ No newline at end of file +#define HID_PAD (*(vu32 *)0x10146000 ^ 0xFFF) +#define BUTTON_RIGHT (1 << 4) +#define BUTTON_LEFT (1 << 5) +#define BUTTON_UP (1 << 6) +#define BUTTON_DOWN (1 << 7) +#define BUTTON_X (1 << 10) +#define BUTTON_Y (1 << 11) +#define BUTTON_R1 (1 << 8) +#define BUTTON_SELECT (1 << 2) \ No newline at end of file diff --git a/loader/source/main.c b/loader/source/main.c index 57be0fd..ffc2f25 100644 --- a/loader/source/main.c +++ b/loader/source/main.c @@ -51,6 +51,7 @@ void main(void) ((pressed & BUTTON_X) && LOAD_PAYLOAD("x")) || ((pressed & BUTTON_Y) && LOAD_PAYLOAD("y")) || ((pressed & BUTTON_R1) && LOAD_PAYLOAD("r")) || + ((pressed & BUTTON_SELECT) && LOAD_PAYLOAD("select")) || LOAD_PAYLOAD("def")) ((void (*)())PAYLOAD_ADDRESS)(); }