fix: back() called an empty string in PPUThread.cpp

This commit is contained in:
oltolm 2023-01-22 09:55:36 +01:00 committed by kd-11
parent ad4677a67c
commit 40cd255051

View File

@ -3275,7 +3275,7 @@ extern void ppu_initialize()
const std::string mount_point = vfs::get("/dev_flash/");
bool dev_flash_located = Emu.GetCat().back() != 'P' && Emu.IsPathInsideDir(Emu.GetBoot(), mount_point);
bool dev_flash_located = !Emu.GetCat().ends_with('P') && Emu.IsPathInsideDir(Emu.GetBoot(), mount_point);
if (compile_fw || dev_flash_located)
{