Fix rare occurence where there is a /PS3_GAME+something directory which leads to weird behavior

This commit is contained in:
RipleyTom 2017-08-13 23:14:33 +02:00 committed by Ivan
parent e0508c6c64
commit 81da93a302

View file

@ -388,7 +388,7 @@ void Emulator::Load(bool add_only)
if (_cat == "DG" && bdvd_dir.empty()) if (_cat == "DG" && bdvd_dir.empty())
{ {
// Mount /dev_bdvd/ if necessary // 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); bdvd_dir = elf_dir.substr(0, pos);
} }