From 7e8e3ece66f2a58af7def394d9c9040d0b65cf2c Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Sun, 5 Apr 2020 22:01:07 +0200 Subject: [PATCH] [Script] Add clearscreen --- source/tegraexplorer/script/functions.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/tegraexplorer/script/functions.c b/source/tegraexplorer/script/functions.c index 8a0eb7d..8752d33 100644 --- a/source/tegraexplorer/script/functions.c +++ b/source/tegraexplorer/script/functions.c @@ -194,6 +194,7 @@ int part_SetStringIndex(){ return -1; if (str_str_index(index, &out)) return -1; + str_str_add(argv[1], out); return 0; } @@ -504,10 +505,16 @@ int part_fs_extractBisFile(){ return extract_bis_file(path, outfolder); } +int part_clearscreen(){ + gfx_clearscreen(); + return 0; +} + str_fnc_struct functions[] = { {"printf", part_printf, 1}, {"printInt", part_print_int, 1}, {"setPrintPos", part_setPrintPos, 2}, + {"clearscreen", part_clearscreen, 0}, {"if", part_if, 1}, {"math", part_Math, 3}, {"check", part_Check, 3},