System: Fix title not showing for non-database discs

This commit is contained in:
Connor McLaughlin
2022-07-23 13:36:53 +10:00
parent cac9c3fe04
commit be03998be0
3 changed files with 8 additions and 2 deletions

View File

@ -192,7 +192,7 @@ bool GameList::GetDiscListEntry(const std::string& path, Entry* entry)
}
else
{
const std::string display_name(FileSystem::GetDisplayNameFromPath(path));
const std::string display_name(Path::GetFileTitle(FileSystem::GetDisplayNameFromPath(path)));
// no game code, so use the filename title
entry->serial = System::GetGameCodeForImage(cdi.get(), true);