From e98a3bba687dc68e1c0dd7075dcaf58442cd2ca6 Mon Sep 17 00:00:00 2001 From: suchmememanyskill Date: Mon, 4 Jan 2021 23:42:26 +0100 Subject: [PATCH] don't pause script on exit except on error --- source/fs/menus/filemenu.c | 3 --- source/script/parser.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/fs/menus/filemenu.c b/source/fs/menus/filemenu.c index 130ead5..af5582d 100644 --- a/source/fs/menus/filemenu.c +++ b/source/fs/menus/filemenu.c @@ -93,9 +93,6 @@ void RunScript(char *path, FSEntry_t entry){ freeDictVector(&ctx.varDict); lexarVectorClear(&ctx.script); - - gfx_printf("\nScript done!\nPress any key"); - hidWait(); } void RenameFile(char *path, FSEntry_t entry){ diff --git a/source/script/parser.c b/source/script/parser.c index d52c72c..21104f0 100644 --- a/source/script/parser.c +++ b/source/script/parser.c @@ -123,5 +123,8 @@ void printError(scriptResult_t res) { for (int i = 0; i < res.len; i++) { printToken(&res.nearToken[i]); } + + gfx_printf("\nPress any key to exit"); + hidWait(); } } \ No newline at end of file