mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 19:55:50 +00:00
Merge pull request #3075 from waddlesplash/no-regexp
FileSearch: Don't use RegExes, just do string comparisons.
This commit is contained in:
commit
58d893e56f
10 changed files with 41 additions and 46 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