From 326403518de42860778e9ac102ae04eb85ee1e85 Mon Sep 17 00:00:00 2001 From: lat9nq Date: Thu, 28 May 2020 13:30:22 -0400 Subject: Address requested changes --- src/core/file_sys/patch_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/file_sys/patch_manager.cpp') diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index 3d1965abb..1002b688c 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp @@ -6,11 +6,11 @@ #include #include #include -#include #include "common/file_util.h" #include "common/hex_util.h" #include "common/logging/log.h" +#include "common/string_util.h" #include "core/core.h" #include "core/file_sys/content_archive.h" #include "core/file_sys/control_metadata.h" @@ -50,14 +50,14 @@ std::string FormatTitleVersion(u32 version, TitleVersionFormat format) { } std::shared_ptr FindSubdirectoryCaseless(const std::shared_ptr dir, - const std::string& name) { + std::string_view name) { #ifdef _WIN32 return dir->GetSubdirectory(name); #else const auto subdirs = dir->GetSubdirectories(); for (const auto& subdir : subdirs) { std::string dir_name = subdir->GetName(); - boost::algorithm::to_lower(dir_name); + dir_name = Common::ToLower(dir_name); if (dir_name == name) { return subdir; } -- cgit v1.2.3