summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileSearch.cpp
AgeCommit message (Collapse)Author
2026-01-25Remove unused importsMartino Fontana
Yellow squiggly lines begone! Done automatically on .cpp files through `run-clang-tidy`, with manual corrections to the mistakes. If an import is directly used, but is technically unnecessary since it's recursively imported by something else, it is *not* removed. The tool doesn't touch .h files, so I did some of them by hand while fixing errors due to old recursive imports. Not everything is removed, but the cleanup should be substantial enough. Because this done on Linux, code that isn't used on it is mostly untouched. (Hopefully no open PR is depending on these imports...)
2026-01-24Common/FileSearch: Refactor DoFileSearchSintendo
2024-12-26Merge pull request #13116 from mitaclaw/ranges-modernization-8-trivial-ofJMC47
Ranges Algorithms Modernization - Of
2024-12-15Modernize `std::any_of` with rangesmitaclaw
In WiimoteReal.cpp, JitRegCache.cpp, lambda predicates were replaced by pointers to member functions because ranges algorithms are able invoke those. In ConvertDialog.cpp, the `std::mem_fn` helper was removed because ranges algorithms are able to handle pointers to member functions as predicates.
2024-10-17Modernize `std::unique` with rangesmitaclaw
The new return value is `std::ranges::subrange`.
2024-10-10Modernize `std::sort` with rangesmitaclaw
2024-10-10Modernize `std::replace` with rangesmitaclaw
2023-01-10get rid of HAS_STD_FILESYSTEMShawn Hoffman
just use std::filesystem
2021-12-10Treewide: Adjust order of includesPokechu22
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2020-12-28Android: Add specialized content provider implementation of DoFileSearchJosJuice
2020-08-23apply `if constexpr` in a couple placesShawn Hoffman
2020-08-23don't use std::move on const variablesShawn Hoffman
2019-06-21Work around C++20 std::filesystem changes related to u8stringJosJuice
2019-06-20Fix opening controller config when there is no profile directoryJosJuice
https://bugs.dolphin-emu.org/issues/11771
2019-06-20Replace <experimental/filesystem> includes with <filesystem>JosJuice
https://bugs.dolphin-emu.org/issues/11770
2017-06-28Fix DoFileSearch for non-ASCII extensions on WindowsJosJuice
We don't use non-ASCII extensions for anything right now, but we might as well fix this.
2017-06-28Fix DoFileSearch for non-ASCII paths on WindowsJosJuice
It didn't work when there were non-ASCII characters in the directories argument, but it worked fine with non-ASCII characters in names of found files and folders.
2017-06-27FileSearch: Use strcasecmp in non-std codeJosJuice
Because why should only Windows get in on the FileSearch speedup fun? (Not that this fixes the slowness of File::ScanDirectoryTree...)
2017-06-26Merge pull request #5693 from JosJuice/filesearch-minor-changesshuffle2
FileSearch: Minor changes
2017-06-26FileSearch: Add a static_assert for the preferred separatorJosJuice
2017-06-26FileSearch: Check isDirectory in the non-Windows codeJosJuice
c5fa470 made the extension check discard directories, but only in the new code that currently only is used on Windows. Let's add an equivalent check in the old code so that the behavior is consistent across platforms.
2017-06-25Use CompareStringOrdinal in DoFileSearch instead of _wcsicmpShawn Hoffman
2017-06-25FileSearch: Remove unnecessary functionJosJuice
2017-06-24Fix warningsTillmann Karras
2017-06-23replace DoFileSearch with optimized versionShawn Hoffman
2017-04-07FileSearch: Namespace functions under the Common namespaceLioncash
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2015-09-27FileSearch: Don't use RegExs, just do string comparisons.waddlesplash
Nothing used the RegEx feature of FileSearch, and GCC < 4.9 doesn't support C++11 RegEx properly, so get rid of it.
2015-06-21Fix DoFileSearch returning the passed-in directories themselves.comex
Fixes https://code.google.com/p/dolphin-emu/issues/detail?id=8697&can=3
2015-06-08Fix File Extension Search Being Case SensitiveFog
2015-05-28Rewrite FileSearch and improve ScanDirectoryTree.comex
- FileSearch is now just one function, and it converts the original glob into a regex on all platforms rather than relying on native Windows pattern matching on there and a complete hack elsewhere. It now supports recursion out of the box rather than manually expanding into a full list of directories in multiple call sites. - This adds a GCC >= 4.9 dependency due to older versions having outright broken <regex>. MSVC is fine with it. - ScanDirectoryTree returns the parent entry rather than filling parts of it in via reference. The count is now stored in the entry like it was for subdirectories. - .glsl file search is now done with DoFileSearch. - IOCTLV_READ_DIR now uses ScanDirectoryTree directly and sorts the results after replacements for better determinism.
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-02-25Formatting/Whitespace CleanupStevoisiak
Various fixes to formatting and whitespace
2014-03-11Fixes spacing for "for", "while", "switch" and "if"Matthew Parlane
Also moved && and || to ends of lines instead of start. Fixed misc vertical alignments and some { needed newlining.
2014-02-22Make Common/ mostly IWYU clean (and fix errors in rest of the project ↵Pierre Bourdon
detected by this change).
2014-02-18Convert all includes to relative paths.Lioncash
2013-12-31Remove unnecessary Src/ foldersJasper St. Pierre