mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DiscIO/SConfig: Rename GetUniqueID to GetGameID
We call this "game ID" everywhere else, and it's not actually completely unique.
This commit is contained in:
@ -32,7 +32,7 @@ QGroupBox* InfoWidget::CreateISODetails()
|
||||
|
||||
QLineEdit* file_path = CreateValueDisplay(m_game.GetFilePath());
|
||||
QLineEdit* internal_name = CreateValueDisplay(m_game.GetInternalName());
|
||||
QLineEdit* game_id = CreateValueDisplay(m_game.GetUniqueID());
|
||||
QLineEdit* game_id = CreateValueDisplay(m_game.GetGameID());
|
||||
QLineEdit* country = CreateValueDisplay(m_game.GetCountry());
|
||||
QLineEdit* maker = CreateValueDisplay(m_game.GetMaker());
|
||||
QLineEdit* maker_id = CreateValueDisplay(QStringLiteral("0x") + m_game.GetMakerID());
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
PropertiesDialog::PropertiesDialog(QWidget* parent, const GameFile& game) : QDialog(parent)
|
||||
{
|
||||
setWindowTitle(QStringLiteral("%1: %2").arg(game.GetUniqueID()).arg(game.GetLongName()));
|
||||
setWindowTitle(QStringLiteral("%1: %2").arg(game.GetGameID()).arg(game.GetLongName()));
|
||||
QVBoxLayout* layout = new QVBoxLayout();
|
||||
|
||||
QTabWidget* tab_widget = new QTabWidget(this);
|
||||
|
@ -102,7 +102,7 @@ bool GameFile::LoadFileInfo(const QString& path)
|
||||
|
||||
void GameFile::LoadState()
|
||||
{
|
||||
IniFile ini = SConfig::LoadGameIni(m_unique_id.toStdString(), m_revision);
|
||||
IniFile ini = SConfig::LoadGameIni(m_game_id.toStdString(), m_revision);
|
||||
std::string issues_temp;
|
||||
ini.GetIfExists("EmuState", "EmulationStateId", &m_rating);
|
||||
ini.GetIfExists("EmuState", "EmulationIssues", &issues_temp);
|
||||
@ -142,7 +142,7 @@ bool GameFile::TryLoadVolume()
|
||||
if (volume == nullptr)
|
||||
return false;
|
||||
|
||||
m_unique_id = QString::fromStdString(volume->GetUniqueID());
|
||||
m_game_id = QString::fromStdString(volume->GetGameID());
|
||||
std::string maker_id = volume->GetMakerID();
|
||||
m_maker = QString::fromStdString(DiscIO::GetCompanyFromID(maker_id));
|
||||
m_maker_id = QString::fromStdString(maker_id);
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
QString GetFileFolder() const { return m_folder; }
|
||||
qint64 GetFileSize() const { return m_size; }
|
||||
// The rest will not.
|
||||
QString GetUniqueID() const { return m_unique_id; }
|
||||
QString GetGameID() const { return m_game_id; }
|
||||
QString GetMakerID() const { return m_maker_id; }
|
||||
QString GetMaker() const { return m_maker; }
|
||||
u16 GetRevision() const { return m_revision; }
|
||||
@ -84,7 +84,7 @@ private:
|
||||
QDateTime m_last_modified;
|
||||
qint64 m_size = 0;
|
||||
|
||||
QString m_unique_id;
|
||||
QString m_game_id;
|
||||
QString m_maker;
|
||||
QString m_maker_id;
|
||||
u16 m_revision = 0;
|
||||
|
@ -128,7 +128,7 @@ void GameList::OpenProperties()
|
||||
|
||||
void GameList::OpenWiki()
|
||||
{
|
||||
QString game_id = GameFile(GetSelectedGame()).GetUniqueID();
|
||||
QString game_id = GameFile(GetSelectedGame()).GetGameID();
|
||||
QString url = QStringLiteral("https://wiki.dolphin-emu.org/index.php?title=").append(game_id);
|
||||
QDesktopServices::openUrl(QUrl(url));
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
|
||||
case COL_TITLE:
|
||||
return game->GetLongName();
|
||||
case COL_ID:
|
||||
return game->GetUniqueID();
|
||||
return game->GetGameID();
|
||||
case COL_DESCRIPTION:
|
||||
return game->GetDescription();
|
||||
case COL_MAKER:
|
||||
|
Reference in New Issue
Block a user