Fix game title if unset

This commit is contained in:
Nekotekina 2018-04-21 23:56:42 +03:00
parent ef0196d791
commit da6afb11f0

View File

@ -391,7 +391,7 @@ void Emulator::Load(bool add_only)
return fs::file{elf_dir + "/../PARAM.SFO"};
}());
m_title = psf::get_string(_psf, "TITLE", m_path);
m_title = psf::get_string(_psf, "TITLE", m_path.substr(m_path.find_last_of('/') + 1));
m_title_id = psf::get_string(_psf, "TITLE_ID");
m_cat = psf::get_string(_psf, "CATEGORY");