summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorlat9nq <lat9nq@virginia.edu>2020-05-28 19:30:22 +0200
committerlat9nq <lat9nq@virginia.edu>2020-05-28 19:30:22 +0200
commit326403518de42860778e9ac102ae04eb85ee1e85 (patch)
tree617dbbd64d1dcd5934bb9912ae6e205a8727cbab /src/core
parent*nix systems can read any-case patch directories (diff)
downloadyuzu-326403518de42860778e9ac102ae04eb85ee1e85.tar
yuzu-326403518de42860778e9ac102ae04eb85ee1e85.tar.gz
yuzu-326403518de42860778e9ac102ae04eb85ee1e85.tar.bz2
yuzu-326403518de42860778e9ac102ae04eb85ee1e85.tar.lz
yuzu-326403518de42860778e9ac102ae04eb85ee1e85.tar.xz
yuzu-326403518de42860778e9ac102ae04eb85ee1e85.tar.zst
yuzu-326403518de42860778e9ac102ae04eb85ee1e85.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/patch_manager.cpp6
-rw-r--r--src/core/file_sys/patch_manager.h2
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 @@
#include <array>
#include <cstddef>
#include <cstring>
-#include <boost/algorithm/string/case_conv.hpp>
#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<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<VfsDirectory> 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;
}
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,
// Returns a directory with name matching name case-insensitive. Returns nullptr if directory
// doesn't have a directory with name.
std::shared_ptr<VfsDirectory> FindSubdirectoryCaseless(const std::shared_ptr<VfsDirectory> dir,
- const std::string& name);
+ std::string_view name);
// A centralized class to manage patches to games.
class PatchManager {