From f95b6e399f6b28f81c923975f733244907b7cd6c Mon Sep 17 00:00:00 2001 From: "Such Meme, Many Skill" Date: Sun, 5 Apr 2020 17:07:11 +0200 Subject: [PATCH] Bugfix + add fs_extractBisFile (to scripts) --- source/tegraexplorer/fs/fsmenu.c | 3 +++ source/tegraexplorer/script/functions.c | 12 ++++++++++++ 2 files changed, 15 insertions(+) diff --git a/source/tegraexplorer/fs/fsmenu.c b/source/tegraexplorer/fs/fsmenu.c index 91f30e9..b59350f 100644 --- a/source/tegraexplorer/fs/fsmenu.c +++ b/source/tegraexplorer/fs/fsmenu.c @@ -19,6 +19,9 @@ void fileexplorer(const char *startpath, int type){ if (lastentry > 0 && lastentry == type) clipboardhelper = 0; + if (clipboardhelper & OPERATIONMOVE) + clipboardhelper = 0; + lastentry = type; fsreader_writecurpath(startpath); diff --git a/source/tegraexplorer/script/functions.c b/source/tegraexplorer/script/functions.c index 2b584e8..8a0eb7d 100644 --- a/source/tegraexplorer/script/functions.c +++ b/source/tegraexplorer/script/functions.c @@ -493,6 +493,17 @@ int part_mmc_restorePart(){ return mmcFlashFile(path, currentlyMounted); } +int part_fs_extractBisFile(){ + char *path, *outfolder; + + if (parseStringInput(argv[0], &path)) + return -1; + if (parseStringInput(argv[1], &outfolder)) + return -1; + + return extract_bis_file(path, outfolder); +} + str_fnc_struct functions[] = { {"printf", part_printf, 1}, {"printInt", part_print_int, 1}, @@ -519,6 +530,7 @@ str_fnc_struct functions[] = { {"fs_closeDir", part_fs_CloseDir, 0}, {"fs_readDir", part_fs_ReadDir, 0}, {"fs_combinePath", part_fs_combinePath, 3}, + {"fs_extractBisFile", part_fs_extractBisFile, 2}, {"mmc_connect", part_ConnectMMC, 1}, {"mmc_mount", part_MountMMC, 1}, {"mmc_dumpPart", part_mmc_dumpPart, 2},