1
0
Fork 0
mirror of https://github.com/suchmememanyskill/TegraExplorer.git synced 2024-12-26 11:26:05 +00:00

[Scripting] Add CheckPath command

This commit is contained in:
Such Meme, Many Skill 2020-03-11 21:01:57 +01:00
parent 7c7dd7178f
commit 5cb50722cf

View file

@ -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}
};