From 40cd25505143ac715513bf2cd31b51b239a36969 Mon Sep 17 00:00:00 2001 From: oltolm Date: Sun, 22 Jan 2023 09:55:36 +0100 Subject: [PATCH] fix: back() called an empty string in PPUThread.cpp --- rpcs3/Emu/Cell/PPUThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index 21c9396bd2..c5971576fa 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -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) {