mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-18 14:25:38 +00:00
CommonHostInterface: Fix always using playlist title for running game
This commit is contained in:
parent
b6ea769ecf
commit
3f2c034869
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue