diff options
Diffstat (limited to 'src/core')
| -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_) | |||
| 92 | perms(perms_) { | 92 | perms(perms_) { |
| 93 | if (!FileUtil::Exists(path) && (perms == Mode::Write || perms == Mode::Append)) | 93 | if (!FileUtil::Exists(path) && (perms == Mode::Write || perms == Mode::Append)) |
| 94 | FileUtil::CreateDir(path); | 94 | FileUtil::CreateDir(path); |
| 95 | unsigned size; | 95 | |
| 96 | if (perms == Mode::Append) | 96 | if (perms == Mode::Append) |
| 97 | return; | 97 | return; |
| 98 | 98 | ||
| 99 | FileUtil::ForeachDirectoryEntry( | 99 | FileUtil::ForeachDirectoryEntry( |
| 100 | &size, path, | 100 | nullptr, path, |
| 101 | [this](unsigned* entries_out, const std::string& directory, const std::string& filename) { | 101 | [this](u64* entries_out, const std::string& directory, const std::string& filename) { |
| 102 | std::string full_path = directory + DIR_SEP + filename; | 102 | std::string full_path = directory + DIR_SEP + filename; |
| 103 | if (FileUtil::IsDirectory(full_path)) | 103 | if (FileUtil::IsDirectory(full_path)) |
| 104 | subdirectories.emplace_back(std::make_shared<RealVfsDirectory>(full_path, perms)); | 104 | 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 { | |||
| 20 | 20 | ||
| 21 | static std::string FindRomFS(const std::string& directory) { | 21 | static std::string FindRomFS(const std::string& directory) { |
| 22 | std::string filepath_romfs; | 22 | std::string filepath_romfs; |
| 23 | const auto callback = [&filepath_romfs](unsigned*, const std::string& directory, | 23 | const auto callback = [&filepath_romfs](u64*, const std::string& directory, |
| 24 | const std::string& virtual_name) -> bool { | 24 | const std::string& virtual_name) -> bool { |
| 25 | const std::string physical_name = directory + virtual_name; | 25 | const std::string physical_name = directory + virtual_name; |
| 26 | if (FileUtil::IsDirectory(physical_name)) { | 26 | if (FileUtil::IsDirectory(physical_name)) { |