diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 6 | ||||
| -rw-r--r-- | src/core/file_sys/patch_manager.h | 2 |
2 files changed, 4 insertions, 4 deletions
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 @@ | |||
| 6 | #include <array> | 6 | #include <array> |
| 7 | #include <cstddef> | 7 | #include <cstddef> |
| 8 | #include <cstring> | 8 | #include <cstring> |
| 9 | #include <boost/algorithm/string/case_conv.hpp> | ||
| 10 | 9 | ||
| 11 | #include "common/file_util.h" | 10 | #include "common/file_util.h" |
| 12 | #include "common/hex_util.h" | 11 | #include "common/hex_util.h" |
| 13 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 13 | #include "common/string_util.h" | ||
| 14 | #include "core/core.h" | 14 | #include "core/core.h" |
| 15 | #include "core/file_sys/content_archive.h" | 15 | #include "core/file_sys/content_archive.h" |
| 16 | #include "core/file_sys/control_metadata.h" | 16 | #include "core/file_sys/control_metadata.h" |
| @@ -50,14 +50,14 @@ std::string FormatTitleVersion(u32 version, TitleVersionFormat format) { | |||
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | std::shared_ptr<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<VfsDirectory> dir, | 52 | std::shared_ptr<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<VfsDirectory> dir, |
| 53 | const std::string& name) { | 53 | std::string_view name) { |
| 54 | #ifdef _WIN32 | 54 | #ifdef _WIN32 |
| 55 | return dir->GetSubdirectory(name); | 55 | return dir->GetSubdirectory(name); |
| 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 = subdir->GetName(); |
| 60 | boost::algorithm::to_lower(dir_name); | 60 | dir_name = Common::ToLower(dir_name); |
| 61 | if (dir_name == name) { | 61 | if (dir_name == name) { |
| 62 | return subdir; | 62 | return subdir; |
| 63 | } | 63 | } |
diff --git a/src/core/file_sys/patch_manager.h b/src/core/file_sys/patch_manager.h index a1fb6694d..f4cb918dd 100644 --- a/src/core/file_sys/patch_manager.h +++ b/src/core/file_sys/patch_manager.h | |||
| @@ -32,7 +32,7 @@ std::string FormatTitleVersion(u32 version, | |||
| 32 | // Returns a directory with name matching name case-insensitive. Returns nullptr if directory | 32 | // Returns a directory with name matching name case-insensitive. Returns nullptr if directory |
| 33 | // doesn't have a directory with name. | 33 | // doesn't have a directory with name. |
| 34 | std::shared_ptr<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<VfsDirectory> dir, | 34 | std::shared_ptr<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<VfsDirectory> dir, |
| 35 | const std::string& name); | 35 | std::string_view name); |
| 36 | 36 | ||
| 37 | // A centralized class to manage patches to games. | 37 | // A centralized class to manage patches to games. |
| 38 | class PatchManager { | 38 | class PatchManager { |