From 5cb50722cf435b55a35a4e7e7166908a66531157 Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Wed, 11 Mar 2020 21:01:57 +0100 Subject: [PATCH] [Scripting] Add CheckPath command --- source/tegraexplorer/script.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/tegraexplorer/script.c b/source/tegraexplorer/script.c index 99960d4..40aefd8 100644 --- a/source/tegraexplorer/script.c +++ b/source/tegraexplorer/script.c @@ -21,6 +21,11 @@ const int scriptver = 131; bool forceExit = false; u32 currentcolor; +void Part_CheckFile(){ + FILINFO fno; + errcode = f_stat(args[0], &fno); +} + void Part_SetColor(){ if (strcmpcheck(args[0], "RED")) currentcolor = COLOR_RED; @@ -140,6 +145,7 @@ script_parts parts[] = { {"VERSION", Part_VersionCheck, 1}, {"WAIT", Part_Wait, 1}, {"COLOR", Part_SetColor, 1}, + {"CHECKPATH", Part_CheckFile, 1}, {"NULL", NULL, -1} };