Settings: Fix double source of truth for controller names

This commit is contained in:
Stenzek
2024-04-27 13:21:11 +10:00
parent 5477f2eae2
commit 3e99084770
12 changed files with 93 additions and 128 deletions

View File

@@ -6,6 +6,7 @@
#include "qtprogresscallback.h"
#include "settingswindow.h"
#include "core/controller.h"
#include "core/game_database.h"
#include "core/game_list.h"
@@ -113,7 +114,7 @@ void GameSummaryWidget::populateUi(const std::string& path, const std::string& s
{
if (!controllers.isEmpty())
controllers.append(", ");
controllers.append(Settings::GetControllerTypeDisplayName(static_cast<ControllerType>(i)));
controllers.append(Controller::GetControllerInfo(static_cast<ControllerType>(i))->GetDisplayName());
}
}
}