diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-22 07:05:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-22 07:05:30 +0200 |
commit | ef163c1a15e25228cc7f6777e07905778d6f4f89 (patch) | |
tree | 9a9cc973c4334d5afbaa410bac363250748082c5 /src/core | |
parent | Merge pull request #761 from bunnei/improve-raster-cache (diff) | |
parent | file_util: Use a u64 to represent number of entries (diff) | |
download | yuzu-ef163c1a15e25228cc7f6777e07905778d6f4f89.tar yuzu-ef163c1a15e25228cc7f6777e07905778d6f4f89.tar.gz yuzu-ef163c1a15e25228cc7f6777e07905778d6f4f89.tar.bz2 yuzu-ef163c1a15e25228cc7f6777e07905778d6f4f89.tar.lz yuzu-ef163c1a15e25228cc7f6777e07905778d6f4f89.tar.xz yuzu-ef163c1a15e25228cc7f6777e07905778d6f4f89.tar.zst yuzu-ef163c1a15e25228cc7f6777e07905778d6f4f89.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/vfs_real.cpp | 6 | ||||
-rw-r--r-- | src/core/loader/deconstructed_rom_directory.cpp | 2 |
2 files changed, 4 insertions, 4 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)); diff --git a/src/core/loader/deconstructed_rom_directory.cpp b/src/core/loader/deconstructed_rom_directory.cpp index 394963a69..18bd62a08 100644 --- a/src/core/loader/deconstructed_rom_directory.cpp +++ b/src/core/loader/deconstructed_rom_directory.cpp @@ -20,7 +20,7 @@ namespace Loader { static std::string FindRomFS(const std::string& directory) { std::string filepath_romfs; - const auto callback = [&filepath_romfs](unsigned*, const std::string& directory, + const auto callback = [&filepath_romfs](u64*, const std::string& directory, const std::string& virtual_name) -> bool { const std::string physical_name = directory + virtual_name; if (FileUtil::IsDirectory(physical_name)) { |