mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-18 23:11:48 +00:00
DolphinQT/Netplay: Make variables constant
This commit is contained in:
parent
b2e5d6df25
commit
cb30862cfb
6 changed files with 51 additions and 51 deletions
|
@ -67,8 +67,8 @@ void PadMappingDialog::ConnectWidgets()
|
|||
|
||||
int PadMappingDialog::exec()
|
||||
{
|
||||
auto client = Settings::Instance().GetNetPlayClient();
|
||||
auto server = Settings::Instance().GetNetPlayServer();
|
||||
const auto client = Settings::Instance().GetNetPlayClient();
|
||||
const auto server = Settings::Instance().GetNetPlayServer();
|
||||
// Load Settings
|
||||
m_players = client->GetPlayers();
|
||||
m_pad_mapping = server->GetPadMapping();
|
||||
|
@ -87,7 +87,7 @@ int PadMappingDialog::exec()
|
|||
|
||||
for (auto& combo_group : {m_gc_boxes, m_wii_boxes})
|
||||
{
|
||||
bool gc = combo_group == m_gc_boxes;
|
||||
const bool gc = combo_group == m_gc_boxes;
|
||||
for (size_t i = 0; i < combo_group.size(); i++)
|
||||
{
|
||||
auto& combo = combo_group[i];
|
||||
|
@ -131,8 +131,8 @@ void PadMappingDialog::OnMappingChanged()
|
|||
{
|
||||
for (unsigned int i = 0; i < m_wii_boxes.size(); i++)
|
||||
{
|
||||
int gc_id = m_gc_boxes[i]->currentIndex();
|
||||
int wii_id = m_wii_boxes[i]->currentIndex();
|
||||
const int gc_id = m_gc_boxes[i]->currentIndex();
|
||||
const int wii_id = m_wii_boxes[i]->currentIndex();
|
||||
|
||||
m_pad_mapping[i] = gc_id > 0 ? m_players[gc_id - 1]->pid : 0;
|
||||
m_gba_config[i].enabled = m_gba_boxes[i]->isChecked();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue