Fix missing titles for some file types

This commit is contained in:
Henrik Rydgård 2024-01-30 12:31:56 +01:00
parent 76242cb9f7
commit 9792453b27

View File

@ -317,7 +317,7 @@ void GameInfo::ParseParamSFO() {
std::string GameInfo::GetTitle() {
std::lock_guard<std::mutex> guard(lock);
if (hasFlags & GameInfoFlags::PARAM_SFO) {
if ((hasFlags & GameInfoFlags::PARAM_SFO) && !title.empty()) {
return title;
} else {
return filePath_.GetFilename();