1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-11-08 13:11:54 +00:00

Fuck testing my controllers

This commit is contained in:
suchmememanyskill 2020-12-29 01:13:09 +01:00
parent 5898c861ec
commit 46460adc3b
3 changed files with 3 additions and 24 deletions

View file

@ -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);
}
}

View file

@ -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(){

View file

@ -1,6 +1,5 @@
#pragma once
void RebootToPayload();
void TestControllers();
void DumpSysFw();
void FormatSD();