From da6afb11f0dc9d0e5b2f611c57a49605c7a4264d Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sat, 21 Apr 2018 23:56:42 +0300 Subject: [PATCH] Fix game title if unset --- rpcs3/Emu/System.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 7d53db7945..759ddd1785 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -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");