diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2023-01-24 21:51:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-24 21:51:15 +0100 |
| commit | 4b2c00e239f44e79190cc156e4557ea4aaf64bd2 (patch) | |
| tree | 09ec8ac31ff935d63aa9c06004802156ac96ebf5 /Source/Core/Common/NandPaths.cpp | |
| parent | ba6ee9d7ba9730e5b2165ff0ee18cbc23762b129 (diff) | |
| parent | e5b91f00b0688d5cba6870da6d6ad3300097b07f (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.cpp | 2 |
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; } |
