mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 16:49:58 -06:00
Separate banner and volume name getting functions. Game properties now shows the correct "banner" name in more cases.
This commit is contained in:
@ -22,7 +22,6 @@
|
||||
#include "NetPlay.h"
|
||||
#include "NetWindow.h"
|
||||
#include "Frame.h"
|
||||
#include "ConfigManager.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
@ -39,11 +38,14 @@ NetPlayDiag *NetPlayDiag::npd = NULL;
|
||||
|
||||
std::string BuildGameName(const GameListItem& game)
|
||||
{
|
||||
auto const selected_lang = SConfig::GetInstance().m_LocalCoreStartupParameter.SelectedLanguage;
|
||||
// Lang needs to be consistent
|
||||
auto const lang = 0;
|
||||
|
||||
// TODO: this should use the name from the volume not the banner
|
||||
// (I seems banner name can sometimes depend on save contents)
|
||||
return game.GetName(selected_lang) + " (" + game.GetUniqueID() + ")";
|
||||
std::string name(game.GetBannerName(lang));
|
||||
if (name.empty())
|
||||
name = game.GetVolumeName(lang);
|
||||
|
||||
return name + " (" + game.GetUniqueID() + ")";
|
||||
}
|
||||
|
||||
void FillWithGameNames(wxListBox* game_lbox, const CGameListCtrl& game_list)
|
||||
|
Reference in New Issue
Block a user