Properly refresh SelectFilePath(...);.

This commit is contained in:
StackZ
2020-03-26 23:11:42 +01:00
parent d24a8e476e
commit cae6dc5160
6 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -303,7 +303,7 @@ void ScriptCreator::SubMenuLogic(u32 hDown, u32 hHeld, touchPosition touch) {
}
break;
case 1:
std::string tempScript = selectFilePath("Select the Script file.", {"json"}, 2);
std::string tempScript = selectFilePath("Select the Script file.", Config::ScriptPath, {"json"}, 2);
if (tempScript != "") {
jsonFileName = tempScript;
if(access(jsonFileName.c_str(), F_OK) != -1 ) {