mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
Use more starts_with/ends_with.
Remove ends_with global func.
This commit is contained in:
parent
90f4023cb8
commit
f08c778d2c
11 changed files with 24 additions and 30 deletions
|
|
@ -58,7 +58,7 @@ struct syscache_info
|
|||
|
||||
for (auto&& entry : fs::dir(cache_root))
|
||||
{
|
||||
if (entry.is_directory && entry.name.size() >= prefix.size() && entry.name.compare(0, prefix.size(), prefix) == 0)
|
||||
if (entry.is_directory && entry.name.starts_with(prefix))
|
||||
{
|
||||
cache_id = std::move(entry.name);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue