mirror of
https://github.com/izzy2lost/libultraship.git
synced 2026-06-19 01:16:13 -07:00
Fix ListFiles(std::string) mistakenly feeding non-empty list to ListFiles(std::string, std::string) for includes, resulting in failed matching. (#801)
This commit is contained in:
@@ -66,10 +66,10 @@ bool ArchiveManager::HasFile(uint64_t hash) {
|
||||
|
||||
std::shared_ptr<std::vector<std::string>> ArchiveManager::ListFiles(const std::string& searchMask) {
|
||||
std::list<std::string> includes = {};
|
||||
if (searchMask.size() > 0) {
|
||||
if (!searchMask.empty()) {
|
||||
includes.push_back(searchMask);
|
||||
}
|
||||
return ListFiles({ searchMask }, {});
|
||||
return ListFiles(includes, {});
|
||||
}
|
||||
|
||||
std::shared_ptr<std::vector<std::string>> ArchiveManager::ListFiles(const std::list<std::string>& includes,
|
||||
|
||||
Reference in New Issue
Block a user