mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-29 08:45:42 -04: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)
|
void CommonHostInterface::GetGameInfo(const char* path, CDImage* image, std::string* code, std::string* title)
|
||||||
{
|
{
|
||||||
const GameListEntry* list_entry = m_game_list->GetEntryForPath(path);
|
const GameListEntry* list_entry = m_game_list->GetEntryForPath(path);
|
||||||
if (list_entry)
|
if (list_entry && list_entry->type != GameListEntryType::Playlist)
|
||||||
{
|
{
|
||||||
*code = list_entry->code;
|
*code = list_entry->code;
|
||||||
*title = list_entry->title;
|
*title = list_entry->title;
|
||||||
@ -3084,7 +3084,6 @@ void CommonHostInterface::GetGameInfo(const char* path, CDImage* image, std::str
|
|||||||
|
|
||||||
if (image)
|
if (image)
|
||||||
{
|
{
|
||||||
GameDatabase database;
|
|
||||||
GameDatabaseEntry database_entry;
|
GameDatabaseEntry database_entry;
|
||||||
if (m_game_list->GetDatabaseEntryForDisc(image, &database_entry))
|
if (m_game_list->GetDatabaseEntryForDisc(image, &database_entry))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user