From 420bfef21445cc1edd33dc9af925de91c8bdb56b Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 12 Jul 2017 14:07:38 +0300 Subject: [PATCH] Cleaning after PoorRequest --- rpcs3/Emu/System.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 1b98768acc..50cdeb8475 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -422,16 +422,16 @@ void Emulator::Load() if (m_elf_path.empty()) { - if (!bdvd_dir.empty() && fs::is_dir(bdvd_dir)) + if (m_path.find(vfs::get("/dev_hdd0/game/")) != -1) + { + m_elf_path = "/dev_hdd0/game/" + m_path.substr(vfs::get("/dev_hdd0/game/").size()); + } + else if (!bdvd_dir.empty() && fs::is_dir(bdvd_dir)) { //Disc games are on /dev_bdvd/ size_t pos = m_path.rfind("PS3_GAME"); m_elf_path = "/dev_bdvd/" + m_path.substr(pos); } - else if (m_path.find(vfs::get("/dev_hdd0/game/")) != -1) - { - m_elf_path = "/dev_hdd0/game/" + m_path.substr(vfs::get("/dev_hdd0/game/").size()); - } else { //For homebrew