diff --git a/source/main.c b/source/main.c index b718c83..c62c20e 100644 --- a/source/main.c +++ b/source/main.c @@ -12,11 +12,11 @@ DrawContext ctx; #define SERVER_ADDRESS "https://soap.nintendohomebrew.com/submit" #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++; diff --git a/templates/admin.html b/templates/admin.html index cb1acb3..5586e66 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -57,13 +57,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 %}