From 92be67b4028a3eb91196bdc0837546180a765980 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 5 Dec 2018 00:06:09 +0300 Subject: [PATCH] Fix #5370 regression --- rpcs3/Emu/System.cpp | 2 +- rpcs3/rpcs3qt/main_window.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 7201c531c6..f03e785ddb 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -657,7 +657,7 @@ void Emulator::Load(bool add_only) } else { - m_sfo_dir = GetSfoDirFromGamePath(fs::get_parent_dir(elf_dir), GetUsr()); + m_sfo_dir = GetSfoDirFromGamePath(elf_dir + "/../", GetUsr()); } _psf = psf::load_object(fs::file(m_sfo_dir + "/PARAM.SFO")); diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index 33e47d079f..19fbaf60b7 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -194,7 +194,7 @@ void main_window::SetAppIconFromPath(const std::string& path) { if (!fs::is_dir(pth)) continue; - const std::string sfo_dir = Emu.GetSfoDirFromGamePath(path, Emu.GetUsr()); + const std::string sfo_dir = Emu.GetSfoDirFromGamePath(pth, Emu.GetUsr()); const std::string ico = sfo_dir + "/ICON0.PNG"; if (fs::is_file(ico)) {