Skip to content

Commit 5ecb84f

Browse files
committed
Swap spectator and music off lines for my sanity
1 parent 68070cd commit 5ecb84f

File tree

9 files changed

+14
-14
lines changed

9 files changed

+14
-14
lines changed

Source/Core/Core/Config/NetplaySettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ const Info<u32> NETPLAY_MINIMUM_BUFFER_SIZE{{System::Main, "NetPlay", "MinimumBu
4747
const Info<u32> NETPLAY_PLAYER_BUFFER_SIZE{{System::Main, "NetPlay", "PlayerBufferSize"}, 2};
4848
const Info<u32> NETPLAY_CLIENT_BUFFER_SIZE{{System::Main, "NetPlay", "BufferSizeClient"}, 1};
4949

50-
const Info<bool> NETPLAY_IS_SPECTATOR{{System::Main, "NetPlay", "IsSpectator"}, false};
5150
const Info<bool> NETPLAY_BRAWL_MUSIC_OFF{{System::Main, "NetPlay", "BrawlMusicOff"}, false};
51+
const Info<bool> NETPLAY_IS_SPECTATOR{{System::Main, "NetPlay", "IsSpectator"}, false};
5252

5353
const Info<bool> NETPLAY_SAVEDATA_LOAD{{System::Main, "NetPlay", "SyncSaves"}, true};
5454
const Info<bool> NETPLAY_SAVEDATA_WRITE{{System::Main, "NetPlay", "WriteSaveData"}, false};

Source/Core/Core/Config/NetplaySettings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ extern const Info<u32> NETPLAY_MINIMUM_BUFFER_SIZE;
4343
extern const Info<u32> NETPLAY_PLAYER_BUFFER_SIZE;
4444
extern const Info<u32> NETPLAY_CLIENT_BUFFER_SIZE;
4545

46-
extern const Info<bool> NETPLAY_IS_SPECTATOR;
4746
extern const Info<bool> NETPLAY_BRAWL_MUSIC_OFF;
47+
extern const Info<bool> NETPLAY_IS_SPECTATOR;
4848

4949
extern const Info<bool> NETPLAY_SAVEDATA_LOAD;
5050
extern const Info<bool> NETPLAY_SAVEDATA_WRITE;

Source/Core/Core/ConfigManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ struct SConfig
5050
bool bJITNoBlockLinking = false;
5151

5252
bool bCopyWiiSaveNetplay = true;
53-
bool bIsSpectator = true;
5453
bool bBrawlMusicOff = true;
54+
bool bIsSpectator = true;
5555

5656
DiscIO::Region m_region;
5757

Source/Core/Core/NetPlayClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,8 +906,8 @@ void NetPlayClient::OnStartGame(sf::Packet& packet)
906906
packet >> m_net_settings.allow_sd_writes;
907907
packet >> m_net_settings.oc_enable;
908908
packet >> m_net_settings.oc_factor;
909-
packet >> m_net_settings.is_spectator;
910909
packet >> m_net_settings.brawlmusic_off;
910+
packet >> m_net_settings.is_spectator;
911911

912912
for (auto slot : ExpansionInterface::SLOTS)
913913
packet >> m_net_settings.exi_device[slot];

Source/Core/Core/NetPlayClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ class NetPlayUI
7676
virtual void OnTtlDetermined(u8 ttl) = 0;
7777

7878
virtual bool IsRecording() = 0;
79-
virtual bool IsSpectator() = 0;
8079
virtual bool IsMusicOff() = 0;
80+
virtual bool IsSpectator() = 0;
8181
virtual std::shared_ptr<const UICommon::GameFile>
8282
FindGameFile(const SyncIdentifier& sync_identifier,
8383
SyncIdentifierComparison* found = nullptr) = 0;

Source/Core/Core/NetPlayProto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ struct NetSettings
4747
bool allow_sd_writes = false;
4848
bool oc_enable = false;
4949
float oc_factor = 0;
50-
bool is_spectator = false;
5150
bool brawlmusic_off = false;
51+
bool is_spectator = false;
5252
Common::EnumMap<ExpansionInterface::EXIDeviceType, ExpansionInterface::MAX_SLOT> exi_device{};
5353
int memcard_size_override = -1;
5454

Source/Core/Core/NetPlayServer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,8 +1455,8 @@ bool NetPlayServer::SetupNetSettings()
14551455
settings.golf_mode = Config::Get(Config::NETPLAY_NETWORK_MODE) == "golf";
14561456
settings.use_fma = DoAllPlayersHaveHardwareFMA();
14571457
settings.hide_remote_gbas = Config::Get(Config::NETPLAY_HIDE_REMOTE_GBAS);
1458-
settings.is_spectator = Config::Get(Config::NETPLAY_IS_SPECTATOR);
14591458
settings.brawlmusic_off = Config::Get(Config::NETPLAY_BRAWL_MUSIC_OFF);
1459+
settings.is_spectator = Config::Get(Config::NETPLAY_IS_SPECTATOR);
14601460

14611461
// Unload GameINI to restore things to normal
14621462
Config::RemoveLayer(Config::LayerType::GlobalGame);
@@ -1602,8 +1602,8 @@ bool NetPlayServer::StartGame()
16021602
spac << m_settings.allow_sd_writes;
16031603
spac << m_settings.oc_enable;
16041604
spac << m_settings.oc_factor;
1605-
spac << m_settings.is_spectator;
16061605
spac << m_settings.brawlmusic_off;
1606+
spac << m_settings.is_spectator;
16071607

16081608
for (auto slot : ExpansionInterface::SLOTS)
16091609
spac << static_cast<int>(m_settings.exi_device[slot]);

Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ void NetPlayDialog::CreateMainLayout()
139139
m_player_buffer_size_box = new QSpinBox;
140140
m_player_buffer_label = new QLabel(tr("Player Buffer:"));
141141
m_quit_button = new QPushButton(tr("Quit"));
142-
m_is_spectator = new QCheckBox(tr("Spectator"));
143142
m_brawlmusic_off = new QCheckBox(tr("Client Side Music Off"));
143+
m_is_spectator = new QCheckBox(tr("Spectator"));
144144
m_splitter = new QSplitter(Qt::Horizontal);
145145
m_menu_bar = new QMenuBar(this);
146146

@@ -913,8 +913,8 @@ void NetPlayDialog::SetOptionsEnabled(bool enabled)
913913
m_host_input_authority_action->setEnabled(enabled);
914914
m_golf_mode_action->setEnabled(enabled);
915915
m_fixed_delay_action->setEnabled(enabled);
916-
m_is_spectator->setEnabled(enabled);
917916
m_brawlmusic_off->setEnabled(enabled);
917+
m_is_spectator->setEnabled(enabled);
918918
}
919919

920920
m_record_input_action->setEnabled(enabled);
@@ -1201,8 +1201,8 @@ void NetPlayDialog::LoadSettings()
12011201
const bool strict_settings_sync = Config::Get(Config::NETPLAY_STRICT_SETTINGS_SYNC);
12021202
const bool golf_mode_overlay = Config::Get(Config::NETPLAY_GOLF_MODE_OVERLAY);
12031203
const bool hide_remote_gbas = Config::Get(Config::NETPLAY_HIDE_REMOTE_GBAS);
1204-
const bool is_spectator = Config::Get(Config::NETPLAY_IS_SPECTATOR);
12051204
const bool brawlmusic_off = Config::Get(Config::NETPLAY_BRAWL_MUSIC_OFF);
1205+
const bool is_spectator = Config::Get(Config::NETPLAY_IS_SPECTATOR);
12061206

12071207
m_minimum_buffer_size_box->setValue(minimum_buffer_size);
12081208
m_player_buffer_size_box->setValue(player_buffer_size);
@@ -1221,8 +1221,8 @@ void NetPlayDialog::LoadSettings()
12211221
m_golf_mode_overlay_action->setChecked(golf_mode_overlay);
12221222
m_hide_remote_gbas_action->setChecked(hide_remote_gbas);
12231223

1224-
m_is_spectator->setChecked(is_spectator);
12251224
m_brawlmusic_off->setChecked(brawlmusic_off);
1225+
m_is_spectator->setChecked(is_spectator);
12261226

12271227
const std::string network_mode = Config::Get(Config::NETPLAY_NETWORK_MODE);
12281228

@@ -1266,8 +1266,8 @@ void NetPlayDialog::SaveSettings()
12661266
Config::SetBase(Config::NETPLAY_STRICT_SETTINGS_SYNC, m_strict_settings_sync_action->isChecked());
12671267
Config::SetBase(Config::NETPLAY_GOLF_MODE_OVERLAY, m_golf_mode_overlay_action->isChecked());
12681268
Config::SetBase(Config::NETPLAY_HIDE_REMOTE_GBAS, m_hide_remote_gbas_action->isChecked());
1269-
Config::SetBase(Config::NETPLAY_IS_SPECTATOR, m_is_spectator->isChecked());
12701269
Config::SetBase(Config::NETPLAY_BRAWL_MUSIC_OFF, m_brawlmusic_off->isChecked());
1270+
Config::SetBase(Config::NETPLAY_IS_SPECTATOR, m_is_spectator->isChecked());
12711271

12721272
std::string network_mode;
12731273
if (m_fixed_delay_action->isChecked())

Source/Core/DolphinQt/NetPlay/NetPlayDialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ class NetPlayDialog : public QDialog, public NetPlay::NetPlayUI
7979
void OnIndexRefreshFailed(const std::string error) override;
8080

8181
bool IsRecording() override;
82-
bool IsSpectator() override;
8382
bool IsMusicOff() override;
83+
bool IsSpectator() override;
8484
std::shared_ptr<const UICommon::GameFile>
8585
FindGameFile(const NetPlay::SyncIdentifier& sync_identifier,
8686
NetPlay::SyncIdentifierComparison* found = nullptr) override;

0 commit comments

Comments
 (0)