diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-07-21 22:36:19 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-07-21 22:42:08 -0400 |
| commit | 0ba7fe4ab11d5c7a934a1b45b374f3277bc9f2cf (patch) | |
| tree | 3753ff286d37c247cde5c6be66740641bba587c1 /src/core/loader | |
| parent | 964154ce44cfa25bd59c6fa10113e948a3b43d5c (diff) | |
file_util: Use a u64 to represent number of entries
This avoids a truncating cast on size. I doubt we'd ever traverse a
directory this large, however we also shouldn't truncate sizes away.
Diffstat (limited to 'src/core/loader')
| -rw-r--r-- | src/core/loader/deconstructed_rom_directory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |
