فهرست منبع

Make copying directory string more concise

lat9nq 6 سال پیش
والد
کامیت
f57cbd9f24
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      src/core/file_sys/patch_manager.cpp

+ 1 - 2
src/core/file_sys/patch_manager.cpp

@@ -56,8 +56,7 @@ std::shared_ptr<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<Vfs
 #else
     const auto subdirs = dir->GetSubdirectories();
     for (const auto& subdir : subdirs) {
-        std::string dir_name = subdir->GetName();
-        dir_name = Common::ToLower(dir_name);
+        std::string dir_name = Common::ToLower(subdir->GetName());
         if (dir_name == name) {
             return subdir;
         }