mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +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
|
|
@ -395,7 +395,7 @@ static s32 savedata_check_args(u32 operation, u32 version, vm::cptr<char> dirNam
|
|||
if (cur == '\0' || cur == '|')
|
||||
{
|
||||
// Check prefix if not empty
|
||||
if (posprefix)
|
||||
if (posprefix)
|
||||
{
|
||||
switch (sysutil_check_name_string(buf, 1, CELL_SAVEDATA_DIRNAME_SIZE))
|
||||
{
|
||||
|
|
@ -592,7 +592,7 @@ static NEVER_INLINE error_code savedata_op(ppu_thread& ppu, u32 operation, u32 v
|
|||
|
||||
for (const auto& prefix : prefix_list)
|
||||
{
|
||||
if (entry.name.substr(0, prefix.size()) == prefix)
|
||||
if (entry.name.starts_with(prefix))
|
||||
{
|
||||
// Count the amount of matches and the amount of listed directories
|
||||
listGet->dirNum++; // total number of directories
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue