From ffd73a68187a22bd6a814d47eed87cfa8803b784 Mon Sep 17 00:00:00 2001 From: Gruetzig Date: Sat, 21 Dec 2024 14:02:42 +0100 Subject: [PATCH 1/2] date --- templates/admin.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/admin.html b/templates/admin.html index 5ba4706..7faf05a 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -56,13 +56,14 @@ {% for entry in entries %} {{ entry.name }} - SD: {{ entry.sdserial }} NAND: {{ entry.nandserial }} inspect.log: {{ entry.twlnserial }} SecureInfo: {{ entry.secinfoserial }} Date: {{ entry.date}} + SD: {{ entry.sdserial }} NAND: {{ entry.nandserial }} inspect.log: {{ entry.twlnserial }} SecureInfo: {{ entry.secinfoserial }}Date: {{ entry.date}} Download Delete {% endfor %} From b1131c500da9924b6bfbfafd52bf7a35fff460cd Mon Sep 17 00:00:00 2001 From: Gruetzig Date: Mon, 6 Jan 2025 21:42:51 +0100 Subject: [PATCH 2/2] buf --- source/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/main.c b/source/main.c index f2f6920..a48021c 100644 --- a/source/main.c +++ b/source/main.c @@ -12,11 +12,11 @@ DrawContext ctx; #define SERVER_ADDRESS "0.0.0.0" #endif -void enter(char* inout) { +void enter(char* inout, size_t len) { SwkbdState swkbd; - swkbdInit(&swkbd, SWKBD_TYPE_NORMAL, 1, 50); + swkbdInit(&swkbd, SWKBD_TYPE_NORMAL, 1, len); swkbdSetInitialText(&swkbd, inout); - swkbdInputText(&swkbd, inout, 51); + swkbdInputText(&swkbd, inout, len+1); return; } @@ -107,10 +107,10 @@ int main() { switch(menustate) { case 0: if ((kDown & KEY_X) && (kDown & KEY_DDOWN)) { - enter(address); + enter(address, 51); } if (kDown & KEY_Y) { - enter(discordtag); + enter(discordtag, 32); } if (strlen(address) > 0 && strlen(discordtag) > 0 && kDown & KEY_TOUCH) { menustate++;