summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar lat9nq2020-05-28 13:33:50 -0400
committerGravatar lat9nq2020-05-28 13:33:50 -0400
commitf57cbd9f247ac43dbc9e599cc8523c9b8d93ad48 (patch)
treeb0349aa4a7c1aa4e0d2bd5f6c33201bb86502b73
parentAddress requested changes (diff)
downloadyuzu-f57cbd9f247ac43dbc9e599cc8523c9b8d93ad48.tar.gz
yuzu-f57cbd9f247ac43dbc9e599cc8523c9b8d93ad48.tar.xz
yuzu-f57cbd9f247ac43dbc9e599cc8523c9b8d93ad48.zip
Make copying directory string more concise
-rw-r--r--src/core/file_sys/patch_manager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index 1002b688c..c47ff863e 100644
--- a/src/core/file_sys/patch_manager.cpp
+++ b/src/core/file_sys/patch_manager.cpp
@@ -56,8 +56,7 @@ std::shared_ptr<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<Vfs
56#else 56#else
57 const auto subdirs = dir->GetSubdirectories(); 57 const auto subdirs = dir->GetSubdirectories();
58 for (const auto& subdir : subdirs) { 58 for (const auto& subdir : subdirs) {
59 std::string dir_name = subdir->GetName(); 59 std::string dir_name = Common::ToLower(subdir->GetName());
60 dir_name = Common::ToLower(dir_name);
61 if (dir_name == name) { 60 if (dir_name == name) {
62 return subdir; 61 return subdir;
63 } 62 }