mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Make copying directory string more concise
This commit is contained in:
parent
326403518d
commit
f57cbd9f24
1 changed files with 1 additions and 2 deletions
|
@ -56,8 +56,7 @@ std::shared_ptr<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<Vfs
|
||||||
#else
|
#else
|
||||||
const auto subdirs = dir->GetSubdirectories();
|
const auto subdirs = dir->GetSubdirectories();
|
||||||
for (const auto& subdir : subdirs) {
|
for (const auto& subdir : subdirs) {
|
||||||
std::string dir_name = subdir->GetName();
|
std::string dir_name = Common::ToLower(subdir->GetName());
|
||||||
dir_name = Common::ToLower(dir_name);
|
|
||||||
if (dir_name == name) {
|
if (dir_name == name) {
|
||||||
return subdir;
|
return subdir;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue