Pass std::ranges::subrange to PHYSFSX_findFiles
This commit is contained in:
parent
2c7ed3cfce
commit
515e0abe11
|
@ -79,7 +79,7 @@ typedef PHYSFSX_counted_list_template<PHYSFS_list_deleter> PHYSFSX_counted_list;
|
|||
|
||||
[[nodiscard]]
|
||||
__attribute_nonnull()
|
||||
PHYSFSX_uncounted_list PHYSFSX_findFiles(const char *path, partial_range_t<const file_extension_t *> exts);
|
||||
PHYSFSX_uncounted_list PHYSFSX_findFiles(const char *path, std::ranges::subrange<const file_extension_t *> exts);
|
||||
|
||||
[[nodiscard]]
|
||||
__attribute_nonnull()
|
||||
|
|
|
@ -504,7 +504,7 @@ static inline PHYSFSX_uncounted_list PHYSFSX_findPredicateFiles(const char *path
|
|||
|
||||
// Find files at path that have an extension listed in exts
|
||||
// The extension list exts must be NULL-terminated, with each ext beginning with a '.'
|
||||
PHYSFSX_uncounted_list PHYSFSX_findFiles(const char *path, const partial_range_t<const file_extension_t *> exts)
|
||||
PHYSFSX_uncounted_list PHYSFSX_findFiles(const char *path, const std::ranges::subrange<const file_extension_t *> exts)
|
||||
{
|
||||
const auto predicate = [&](const char *i) {
|
||||
return PHYSFSX_checkMatchingExtension(i, exts);
|
||||
|
|
Loading…
Reference in a new issue