mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
GameFile: Use enums for custom/length parameters
This commit is contained in:
@ -442,7 +442,7 @@ void GameList::ExportWiiSave()
|
||||
for (const auto& game : GetSelectedGames())
|
||||
{
|
||||
if (!WiiSave::Export(game->GetTitleID(), export_dir.toStdString()))
|
||||
failed.push_back(game->GetName(true));
|
||||
failed.push_back(game->GetName(UICommon::GameFile::Variant::LongAndPossiblyCustom));
|
||||
}
|
||||
|
||||
if (!failed.isEmpty())
|
||||
|
@ -124,13 +124,17 @@ QVariant GameListModel::data(const QModelIndex& index, int role) const
|
||||
case COL_DESCRIPTION:
|
||||
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
|
||||
{
|
||||
return QString::fromStdString(game.GetDescription(true))
|
||||
return QString::fromStdString(
|
||||
game.GetDescription(UICommon::GameFile::Variant::LongAndPossiblyCustom))
|
||||
.replace(QLatin1Char('\n'), QLatin1Char(' '));
|
||||
}
|
||||
break;
|
||||
case COL_MAKER:
|
||||
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
|
||||
return QString::fromStdString(game.GetMaker(true));
|
||||
{
|
||||
return QString::fromStdString(
|
||||
game.GetMaker(UICommon::GameFile::Variant::LongAndPossiblyCustom));
|
||||
}
|
||||
break;
|
||||
case COL_FILE_NAME:
|
||||
if (role == Qt::DisplayRole || role == Qt::InitialSortOrderRole)
|
||||
|
Reference in New Issue
Block a user