diff --git a/source/tegraexplorer/gfx/menu.c b/source/tegraexplorer/gfx/menu.c index 4fd7c46..2367a21 100644 --- a/source/tegraexplorer/gfx/menu.c +++ b/source/tegraexplorer/gfx/menu.c @@ -120,12 +120,10 @@ int menu_make(menu_entry *entries, int amount, char *toptext){ res = 0; while (!res){ - if (!res){ - if (sd_inited && !!gpio_read(GPIO_PORT_Z, GPIO_PIN_1)){ - gfx_errDisplay("menu", ERR_SD_EJECTED, 0); - sd_unmount(); - return -1; - } + if (sd_inited && !!gpio_read(GPIO_PORT_Z, GPIO_PIN_1)){ + gfx_errDisplay("menu", ERR_SD_EJECTED, 0); + sd_unmount(); + return -1; } res = btn_read(); diff --git a/source/tegraexplorer/script/parser.c b/source/tegraexplorer/script/parser.c index c7bbdb1..ad42fd5 100644 --- a/source/tegraexplorer/script/parser.c +++ b/source/tegraexplorer/script/parser.c @@ -70,7 +70,7 @@ u32 splitargs(char* in) { } i--; } - else if (in[i] >= '0' && in[i] <= '9') + else if ((in[i] >= '0' && in[i] <= '9') || (in[i] >= '<' && in[i] <= '>') || in[i] == '+' || in[i] == '-' || in[i] == '*' || in[i] == '/') argv[curcount][current++] = in[i]; else if (in[i] == '"') { i++;