Skip to content

Commit 86db030

Browse files
small fixes
- On a switch lite, the home and cap buttons do weird things, so we should disable m - File deletions should wait a bit
1 parent d27832e commit 86db030

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

source/fs/menus/filemenu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ void DeleteFile(char *path, FSEntry_t entry){
5959
gfx_con_setpos(384 + 16, 200 + 16 + 10 * 16);
6060
SETCOLOR(COLOR_RED, COLOR_DARKGREY);
6161
gfx_printf("Are you sure? ");
62-
62+
63+
WaitFor(500);
6364
if (!MakeYesNoHorzMenu(3, COLOR_DARKGREY))
6465
return;
6566

source/hid/hid.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "../utils/utils.h"
88
#include "../tegraexplorer/tools.h"
99
#include <gfx/di.h>
10+
#include "../config.h"
1011

1112
static Input_t inputs = {0};
1213
u16 LbaseX = 0, LbaseY = 0, RbaseX = 0, RbaseY = 0;
@@ -15,11 +16,15 @@ void hidInit(){
1516
jc_init_hw();
1617
}
1718

19+
extern hekate_config h_cfg;
20+
1821
Input_t *hidRead(){
1922
jc_gamepad_rpt_t *controller = joycon_poll();
2023

21-
//if (controller->cap)
22-
// utils_takeScreenshot();
24+
if (h_cfg.t210b01){ // Disable home and capture buttons on mariko to avoid weird behaviour
25+
controller->home = 0;
26+
controller->cap = 0;
27+
}
2328

2429
if (controller->home)
2530
RebootToPayloadOrRcm();

source/utils/utils.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ char *ShowKeyboard(const char *toEdit, u8 alwaysRet){
142142
}
143143
int val = (input->up || input->down) ? 11 : 1;
144144

145+
// Btn buttons do not work lol
145146
if (input->buttons & (JoyLLeft | JoyLUp | BtnVolM)){
146147
if (pos > -1 + val)
147148
pos -= val;

0 commit comments

Comments
 (0)