mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
FileSearch: Don't use RegExs, just do string comparisons.
Nothing used the RegEx feature of FileSearch, and GCC < 4.9 doesn't support C++11 RegEx properly, so get rid of it.
This commit is contained in:
parent
79bf93996f
commit
5643fe5d1f
10 changed files with 36 additions and 44 deletions
|
@ -84,11 +84,11 @@ void HiresTexture::Update()
|
|||
std::string szDir = StringFromFormat("%s%s", File::GetUserPath(D_HIRESTEXTURES_IDX).c_str(), gameCode.c_str());
|
||||
|
||||
std::vector<std::string> Extensions {
|
||||
"*.png",
|
||||
"*.bmp",
|
||||
"*.tga",
|
||||
"*.dds",
|
||||
"*.jpg" // Why not? Could be useful for large photo-like textures
|
||||
".png",
|
||||
".bmp",
|
||||
".tga",
|
||||
".dds",
|
||||
".jpg" // Why not? Could be useful for large photo-like textures
|
||||
};
|
||||
|
||||
auto rFilenames = DoFileSearch(Extensions, {szDir}, /*recursive*/ true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue