GameDatabase: Parse discSetName/discSetSerials

This commit is contained in:
Stenzek
2023-08-23 17:32:12 +10:00
parent 7a1af36e8d
commit 2419008242
5 changed files with 65 additions and 16 deletions

View File

@ -105,11 +105,11 @@ void GameSummaryWidget::populateUi(const std::string& path, const std::string& s
m_ui.releaseInfo->setText(tr("Unknown"));
QString controllers;
if (entry->supported_controllers != 0 && entry->supported_controllers != static_cast<u32>(-1))
if (entry->supported_controllers != 0 && entry->supported_controllers != static_cast<u16>(-1))
{
for (u32 i = 0; i < static_cast<u32>(ControllerType::Count); i++)
{
if ((entry->supported_controllers & (1u << i)) != 0)
if ((entry->supported_controllers & static_cast<u16>(1u << i)) != 0)
{
if (!controllers.isEmpty())
controllers.append(", ");