From 3f2c034869f7cb70b0cf533a015d5ee6170bb4e3 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 24 May 2021 19:54:48 +1000 Subject: [PATCH] CommonHostInterface: Fix always using playlist title for running game --- src/frontend-common/common_host_interface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 26d2dca7a..4ae269830 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -3075,7 +3075,7 @@ void CommonHostInterface::DisplayLoadingScreen(const char* message, int progress void CommonHostInterface::GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title) { const GameListEntry* list_entry = m_game_list->GetEntryForPath(path); - if (list_entry) + if (list_entry && list_entry->type != GameListEntryType::Playlist) { *code = list_entry->code; *title = list_entry->title; @@ -3084,7 +3084,6 @@ void CommonHostInterface::GetGameInfo(const char* path, CDImage* image, std::str if (image) { - GameDatabase database; GameDatabaseEntry database_entry; if (m_game_list->GetDatabaseEntryForDisc(image, &database_entry)) {