mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 14:37:08 +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
|
|
@ -113,7 +113,7 @@ bool pkg_install(const std::string& path, atomic_t<double>& sync)
|
|||
if (header.pkg_size > filelist[0].size())
|
||||
{
|
||||
// Check if multi-files pkg
|
||||
if (path.size() < 7 || path.compare(path.size() - 7, 7, "_00.pkg", 7) != 0)
|
||||
if (!path.ends_with("_00.pkg"))
|
||||
{
|
||||
pkg_log.error("PKG file size mismatch (pkg_size=0x%llx)", header.pkg_size);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue