From 81da93a30276115d9d6a0d62972bd15ba3219e32 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Sun, 13 Aug 2017 23:14:33 +0200 Subject: [PATCH] Fix rare occurence where there is a /PS3_GAME+something directory which leads to weird behavior --- rpcs3/Emu/System.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 4574b21a40..fc919560d6 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -388,7 +388,7 @@ void Emulator::Load(bool add_only) if (_cat == "DG" && bdvd_dir.empty()) { // Mount /dev_bdvd/ if necessary - if (auto pos = elf_dir.rfind("/PS3_GAME") + 1) + if (auto pos = elf_dir.rfind("/PS3_GAME/") + 1) { bdvd_dir = elf_dir.substr(0, pos); }