summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs_real.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-22 04:36:19 +0200
committerLioncash <mathew1800@gmail.com>2018-07-22 04:42:08 +0200
commit0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf (patch)
tree3753ff286d37c247cde5c6be66740641bba587c1 /src/core/file_sys/vfs_real.cpp
parentfile_util: std::move FST entries in ScanDirectoryTree() (diff)
downloadyuzu-0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf.tar
yuzu-0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf.tar.gz
yuzu-0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf.tar.bz2
yuzu-0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf.tar.lz
yuzu-0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf.tar.xz
yuzu-0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf.tar.zst
yuzu-0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf.zip
Diffstat (limited to 'src/core/file_sys/vfs_real.cpp')
-rw-r--r--src/core/file_sys/vfs_real.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index f27fb1f2a..27fd464ae 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -92,13 +92,13 @@ RealVfsDirectory::RealVfsDirectory(const std::string& path_, Mode perms_)
perms(perms_) {
if (!FileUtil::Exists(path) && (perms == Mode::Write || perms == Mode::Append))
FileUtil::CreateDir(path);
- unsigned size;
+
if (perms == Mode::Append)
return;
FileUtil::ForeachDirectoryEntry(
- &size, path,
- [this](unsigned* entries_out, const std::string& directory, const std::string& filename) {
+ nullptr, path,
+ [this](u64* entries_out, const std::string& directory, const std::string& filename) {
std::string full_path = directory + DIR_SEP + filename;
if (FileUtil::IsDirectory(full_path))
subdirectories.emplace_back(std::make_shared<RealVfsDirectory>(full_path, perms));