Check if directory exist first on directorySettings.
Also update Screenshots + ReadMe.
@@ -37,13 +37,13 @@ To build Universal-Updater from source, you will need to setup devkitARM with li
|
||||
|
||||
<details><summary>Screenshots</summary>
|
||||
|
||||
           
|
||||
           
|
||||
|
||||
</details>
|
||||
|
||||
## Credits
|
||||
|
||||
- [StackZ](https://github.com/SuperSaiyajinStackZ) - Lead developer, reworked quirc to C++
|
||||
- [SuperSaiyajinStackZ](https://github.com/SuperSaiyajinStackZ) - Lead developer, reworked quirc to C++
|
||||
- [Pk11](https://github.com/Epicpkmn11) - Mockup Designer, Website Maintainer
|
||||
- [NightScript](https://github.com/NightYoshi370) - Concept Creator & Planner
|
||||
- [dlbeer](https://github.com/dlbeer) - Original developer of [quirc](https://github.com/dlbeer/quirc)
|
||||
|
||||
|
After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 59 KiB After Width: | Height: | Size: 64 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 53 KiB |
@@ -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, {"/"});
|
||||
|
||||
|
||||
@@ -161,6 +161,8 @@ std::vector<UniStoreInfo> GetUniStoreInfo(const std::string &path) {
|
||||
std::vector<UniStoreInfo> info;
|
||||
std::vector<DirEntry> dirContents;
|
||||
|
||||
if (access(path.c_str(), F_OK) != 0) return {}; // Folder does not exist.
|
||||
|
||||
chdir(path.c_str());
|
||||
getDirectoryContents(dirContents, { "unistore" });
|
||||
|
||||
|
||||