summaryrefslogtreecommitdiffstats
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-06-19 09:09:16 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2016-06-19 09:12:15 +0200
commitd6792632f0a426247167fc91c12c1f640748464f (patch)
treeacf52c2afb186071142991e852c9bda645f56c41 /src/common/file_util.h
parentMerge pull request #1877 from wwylele/wait-fix-timeout (diff)
downloadyuzu-d6792632f0a426247167fc91c12c1f640748464f.tar
yuzu-d6792632f0a426247167fc91c12c1f640748464f.tar.gz
yuzu-d6792632f0a426247167fc91c12c1f640748464f.tar.bz2
yuzu-d6792632f0a426247167fc91c12c1f640748464f.tar.lz
yuzu-d6792632f0a426247167fc91c12c1f640748464f.tar.xz
yuzu-d6792632f0a426247167fc91c12c1f640748464f.tar.zst
yuzu-d6792632f0a426247167fc91c12c1f640748464f.zip
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index 32ae2dc57..7ad7ee829 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -105,13 +105,11 @@ bool CreateEmptyFile(const std::string &filename);
* @param num_entries_out to be assigned by the callable with the number of iterated directory entries, never null
* @param directory the path to the enclosing directory
* @param virtual_name the entry name, without any preceding directory info
- * @param recursion Number of children directory to read before giving up
* @return whether handling the entry succeeded
*/
using DirectoryEntryCallable = std::function<bool(unsigned* num_entries_out,
const std::string& directory,
- const std::string& virtual_name,
- unsigned int recursion)>;
+ const std::string& virtual_name)>;
/**
* Scans a directory, calling the callback for each file/directory contained within.
@@ -119,10 +117,9 @@ using DirectoryEntryCallable = std::function<bool(unsigned* num_entries_out,
* @param num_entries_out assigned by the function with the number of iterated directory entries, can be null
* @param directory the directory to scan
* @param callback The callback which will be called for each entry
- * @param recursion Number of children directories to read before giving up
* @return whether scanning the directory succeeded
*/
-bool ForeachDirectoryEntry(unsigned* num_entries_out, const std::string &directory, DirectoryEntryCallable callback, unsigned int recursion = 0);
+bool ForeachDirectoryEntry(unsigned* num_entries_out, const std::string &directory, DirectoryEntryCallable callback);
/**
* Scans the directory tree, storing the results.