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/common/file_util.h | |
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/common/file_util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h index ff01bf0ff..090907c03 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h @@ -84,7 +84,7 @@ bool CreateEmptyFile(const std::string& filename); * @return whether handling the entry succeeded */ using DirectoryEntryCallable = std::function<bool( - unsigned* num_entries_out, const std::string& directory, const std::string& virtual_name)>; + u64* num_entries_out, const std::string& directory, const std::string& virtual_name)>; /** * Scans a directory, calling the callback for each file/directory contained within. @@ -95,7 +95,7 @@ using DirectoryEntryCallable = std::function<bool( * @param callback The callback which will be called for each entry * @return whether scanning the directory succeeded */ -bool ForeachDirectoryEntry(unsigned* num_entries_out, const std::string& directory, +bool ForeachDirectoryEntry(u64* num_entries_out, const std::string& directory, DirectoryEntryCallable callback); /** @@ -105,8 +105,8 @@ bool ForeachDirectoryEntry(unsigned* num_entries_out, const std::string& directo * @param recursion Number of children directories to read before giving up. * @return the total number of files/directories found */ -unsigned ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry, - unsigned int recursion = 0); +u64 ScanDirectoryTree(const std::string& directory, FSTEntry& parent_entry, + unsigned int recursion = 0); // deletes the given directory and anything under it. Returns true on success. bool DeleteDirRecursively(const std::string& directory, unsigned int recursion = 256); |