Skip to content

Commit

Permalink
Fix #5370 regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed Dec 4, 2018
1 parent 476090a commit 92be67b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rpcs3/Emu/System.cpp
Expand Up @@ -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"));
Expand Down
2 changes: 1 addition & 1 deletion rpcs3/rpcs3qt/main_window.cpp
Expand Up @@ -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))
{
Expand Down

0 comments on commit 92be67b

Please sign in to comment.