Fix #5370 regression

This commit is contained in:
Nekotekina 2018-12-05 00:06:09 +03:00
parent 476090a747
commit 92be67b402
2 changed files with 2 additions and 2 deletions

View file

@ -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"));

View file

@ -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))
{