Check if directory exist first on directorySettings.

Also update Screenshots + ReadMe.
This commit is contained in:
StackZ
2020-11-01 11:53:50 +01:00
parent a2f3efc640
commit 06706e00c7
13 changed files with 14 additions and 3 deletions
+10 -1
View File
@@ -53,7 +53,16 @@ std::string Overlays::SelectDir(const std::string &oldDir, const std::string &ms
dirChanged = false;
dirContents.clear();
chdir(oldDir.c_str());
/* Make sure. */
if (access(oldDir.c_str(), F_OK) == 0) {
chdir(oldDir.c_str());
} else {
currentPath = "sdmc:/";
chdir("sdmc:/");
}
std::vector<DirEntry> dirContentsTemp;
getDirectoryContents(dirContentsTemp, {"/"});