From d0799e3cd10db776bae6a2990eef66d8da27b6c7 Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Wed, 1 Apr 2020 16:48:36 +0200 Subject: [PATCH] Rename some variables --- source/tegraexplorer/fs/filemenu.c | 2 +- source/tegraexplorer/script/functions.c | 2 +- source/tegraexplorer/script/parser.c | 2 +- source/tegraexplorer/script/parser.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/tegraexplorer/fs/filemenu.c b/source/tegraexplorer/fs/filemenu.c index 1516daa..8a52f0e 100644 --- a/source/tegraexplorer/fs/filemenu.c +++ b/source/tegraexplorer/fs/filemenu.c @@ -166,7 +166,7 @@ int filemenu(menu_entry file){ break; case FILE_SCRIPT: //ParseScript(fsutil_getnextloc(currentpath, file.name)); - tester(fsutil_getnextloc(currentpath, file.name)); + runScript(fsutil_getnextloc(currentpath, file.name)); fsreader_readfolder(currentpath); break; case FILE_HEXVIEW: diff --git a/source/tegraexplorer/script/functions.c b/source/tegraexplorer/script/functions.c index 3462e12..7c6bf85 100644 --- a/source/tegraexplorer/script/functions.c +++ b/source/tegraexplorer/script/functions.c @@ -399,7 +399,7 @@ int part_fs_ReadDir(){ return -1; if (!f_readdir(&dir, &fno) && fno.fname[0]){ - str_str_add("$FSOBJNAME", fno.fname); + str_str_add("$FILENAME", fno.fname); str_int_add("@ISDIR", (fno.fattrib & AM_DIR) ? 1 : 0); } else { diff --git a/source/tegraexplorer/script/parser.c b/source/tegraexplorer/script/parser.c index e449d1c..3df90f5 100644 --- a/source/tegraexplorer/script/parser.c +++ b/source/tegraexplorer/script/parser.c @@ -253,7 +253,7 @@ void skipbrackets(){ extern u32 currentcolor; extern char *currentpath; -void tester(char *path){ +void runScript(char *path){ int res; forceExit = false; currentchar = 0; diff --git a/source/tegraexplorer/script/parser.h b/source/tegraexplorer/script/parser.h index 2c42b86..8df9fea 100644 --- a/source/tegraexplorer/script/parser.h +++ b/source/tegraexplorer/script/parser.h @@ -1,5 +1,5 @@ #pragma once -void tester(char *path); +void runScript(char *path); void skipbrackets(); void getfollowingchar(char end); \ No newline at end of file