DolphinQt: Expose Game Boy Player ROM path on the GameCube config tab.

This commit is contained in:
Jordan Woyak 2026-03-28 14:32:56 -05:00
parent 657a6f0cff
commit 5cacbcf6ea
2 changed files with 6 additions and 3 deletions

View File

@ -220,7 +220,10 @@ void GameCubePane::CreateWidgets()
{
m_gba_rom_edits[i] = new ConfigText(Config::MAIN_GBA_ROM_PATHS[i]);
m_gba_browse_roms[i] = new NonDefaultQPushButton(QStringLiteral("..."));
gba_layout->addWidget(new QLabel(tr("Port %1 ROM:").arg(i + 1)), gba_row, 0);
auto* const label =
new QLabel((i == Config::GBPLAYER_GBA_INDEX) ? tr("Game Boy Player ROM:") :
tr("Port %1 ROM:").arg(i + 1));
gba_layout->addWidget(label, gba_row, 0);
gba_layout->addWidget(m_gba_rom_edits[i], gba_row, 1);
gba_layout->addWidget(m_gba_browse_roms[i], gba_row, 2);
gba_row++;

View File

@ -85,8 +85,8 @@ private:
ConfigBool* m_gba_save_rom_path;
QPushButton* m_gba_browse_bios;
ConfigUserPath* m_gba_bios_edit;
std::array<QPushButton*, 4> m_gba_browse_roms;
std::array<ConfigText*, 4> m_gba_rom_edits;
std::array<QPushButton*, 5> m_gba_browse_roms;
std::array<ConfigText*, 5> m_gba_rom_edits;
QPushButton* m_gba_browse_saves;
ConfigUserPath* m_gba_saves_edit;
};