From 155f13ed54f51f8fb7f63ca8fc3fbdf24b51ec70 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 23 Jun 2017 00:41:16 +0300 Subject: [PATCH] Workaround booting NP games --- rpcs3/Emu/System.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index b19411abcf..65783a1429 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -428,16 +428,9 @@ void Emulator::Load() size_t pos = m_path.rfind("PS3_GAME"); m_elf_path = "/dev_bdvd/" + m_path.substr(pos); } - else if (GetTitleID().substr(0, 2) == "NP") + else if (m_path.find(vfs::get("/dev_hdd0/game/")) != -1) { - //PSN Games are on /dev_hdd0/ - size_t pos = m_path.rfind(GetTitleID()); - if (pos == std::string::npos) - { - LOG_ERROR(LOADER, "Title ID isn't present in the path(%s)", m_path); - return; - } - m_elf_path = "/dev_hdd0/game/" + m_path.substr(pos); + m_elf_path = "/dev_hdd0/game/" + m_path.substr(vfs::get("/dev_hdd0/game/").size()); } else {