summaryrefslogtreecommitdiff
path: root/Source/Core/Common/NandPaths.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2023-01-24 21:51:15 +0100
committerGitHub <noreply@github.com>2023-01-24 21:51:15 +0100
commit4b2c00e239f44e79190cc156e4557ea4aaf64bd2 (patch)
tree09ec8ac31ff935d63aa9c06004802156ac96ebf5 /Source/Core/Common/NandPaths.cpp
parentba6ee9d7ba9730e5b2165ff0ee18cbc23762b129 (diff)
parente5b91f00b0688d5cba6870da6d6ad3300097b07f (diff)
Merge pull request #11487 from lioncash/str
Common: Replace StringBeginsWith/StringEndsWith with std equivalents
Diffstat (limited to 'Source/Core/Common/NandPaths.cpp')
-rw-r--r--Source/Core/Common/NandPaths.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/NandPaths.cpp b/Source/Core/Common/NandPaths.cpp
index 00f5eb235a..9b08cd263d 100644
--- a/Source/Core/Common/NandPaths.cpp
+++ b/Source/Core/Common/NandPaths.cpp
@@ -76,7 +76,7 @@ std::string GetMiiDatabasePath(std::optional<FromWhichRoot> from)
bool IsTitlePath(const std::string& path, std::optional<FromWhichRoot> from, u64* title_id)
{
std::string expected_prefix = RootUserPath(from) + "/title/";
- if (!StringBeginsWith(path, expected_prefix))
+ if (!path.starts_with(expected_prefix))
{
return false;
}