Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Make copying directory string more concise

lat9nq9d08039623b9
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp
index 1002b688c3..c47ff863ec 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
#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;
}