mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-10 05:38:49 +00:00
fixed stupid directory iterator issue
This commit is contained in:
@@ -21,9 +21,7 @@ std::vector<Core::FileSys::DirEntry> GetDirectoryEntries(const std::string& path
|
|||||||
for (const auto& entry : std::filesystem::directory_iterator(curpath)) {
|
for (const auto& entry : std::filesystem::directory_iterator(curpath)) {
|
||||||
Core::FileSys::DirEntry e = {};
|
Core::FileSys::DirEntry e = {};
|
||||||
if (std::filesystem::is_directory(entry.path().string())) {
|
if (std::filesystem::is_directory(entry.path().string())) {
|
||||||
Core::FileSys::DirEntry e = {};
|
e.name = entry.path().filename().string();
|
||||||
e.name = entry.path().filename().string() +
|
|
||||||
"/"; // hmmm not sure if it has to be like this...
|
|
||||||
e.isFile = false;
|
e.isFile = false;
|
||||||
} else {
|
} else {
|
||||||
e.name = entry.path().filename().string();
|
e.name = entry.path().filename().string();
|
||||||
|
|||||||
Reference in New Issue
Block a user