mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12: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
|
@ -1404,7 +1404,7 @@ extern void ppu_initialize(const ppu_module& info)
|
|||
|
||||
const std::string dev_flash = vfs::get("/dev_flash/");
|
||||
|
||||
if (info.path.compare(0, dev_flash.size(), dev_flash) != 0 && !Emu.GetTitleID().empty() && Emu.GetCat() != "1P")
|
||||
if (!info.path.starts_with(dev_flash) && !Emu.GetTitleID().empty() && Emu.GetCat() != "1P")
|
||||
{
|
||||
// Add prefix for anything except dev_flash files, standalone elfs or PS1 classics
|
||||
cache_path += Emu.GetTitleID();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue