From 46460adc3b796bfa13f3ff83bdb49ce4f5a96c74 Mon Sep 17 00:00:00 2001 From: suchmememanyskill Date: Tue, 29 Dec 2020 01:13:09 +0100 Subject: [PATCH] Fuck testing my controllers --- source/tegraexplorer/mainmenu.c | 8 +++----- source/tegraexplorer/tools.c | 18 ------------------ source/tegraexplorer/tools.h | 1 - 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/source/tegraexplorer/mainmenu.c b/source/tegraexplorer/mainmenu.c index 2e20d9b..c7ab7e2 100644 --- a/source/tegraexplorer/mainmenu.c +++ b/source/tegraexplorer/mainmenu.c @@ -19,7 +19,6 @@ MenuEntry_t mainMenuEntries[] = { {.G = 255, .name = "SD:/"}, {.optionUnion = COLORTORGB(COLOR_YELLOW), .name = "Emmc"}, {.optionUnion = COLORTORGB(COLOR_YELLOW), .name = "Emummc"}, - {.B = 255, .G = 255, .name = "Test Controllers"}, {.R = 255, .name = "Cause an exception"}, {.R = 255, .name = "Partition the sd"}, {.optionUnion = COLORTORGB(COLOR_BLUE), .name = "Dump Firmware"}, @@ -83,7 +82,6 @@ menuPaths mainMenuPaths[] = { HandleSD, HandleEMMC, HandleEMUMMC, - TestControllers, CrashTE, FormatSD, DumpSysFw, @@ -101,9 +99,9 @@ void EnterMainMenu(){ mainMenuEntries[1].hide = !sd_mounted; mainMenuEntries[2].hide = !TConf.keysDumped; mainMenuEntries[3].hide = (!TConf.keysDumped || !emu_cfg.enabled || !sd_mounted); - mainMenuEntries[6].hide = (!is_sd_inited || sd_get_card_removed()); - mainMenuEntries[7].hide = !TConf.keysDumped; - mainMenuEntries[9].name = (sd_mounted) ? "Unmount SD" : "Mount SD"; + mainMenuEntries[5].hide = (!is_sd_inited || sd_get_card_removed()); + mainMenuEntries[6].hide = !TConf.keysDumped; + mainMenuEntries[8].name = (sd_mounted) ? "Unmount SD" : "Mount SD"; FunctionMenuHandler(mainMenuEntries, ARR_LEN(mainMenuEntries), mainMenuPaths, ALWAYSREDRAW); } } diff --git a/source/tegraexplorer/tools.c b/source/tegraexplorer/tools.c index b9d464c..50270e9 100644 --- a/source/tegraexplorer/tools.c +++ b/source/tegraexplorer/tools.c @@ -19,24 +19,6 @@ #include "../fs/fscopy.h" #include "../utils/utils.h" -void TestControllers(){ - gfx_clearscreen(); - gfx_printf("Controller test screen. Return using b\n\n"); - while (1){ - Input_t *controller = hidRead(); - - if (controller->b) - return; - - u32 buttons = controller->buttons; - for (int i = 0; i < 31; i++){ - gfx_printf("%d", buttons & 1); - buttons >>= 1; - } - gfx_printf("\r"); - } -} - extern int launch_payload(char *path); void RebootToPayload(){ diff --git a/source/tegraexplorer/tools.h b/source/tegraexplorer/tools.h index f3e5815..252d2ff 100644 --- a/source/tegraexplorer/tools.h +++ b/source/tegraexplorer/tools.h @@ -1,6 +1,5 @@ #pragma once void RebootToPayload(); -void TestControllers(); void DumpSysFw(); void FormatSD(); \ No newline at end of file