mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-14 13:21:15 +00:00
Merge pull request #13412 from jordan-woyak/netplay-vconfig
VideoConfig: Eliminate NetPlay related members.
This commit is contained in:
commit
67c8d5640f
@ -37,6 +37,7 @@
|
||||
|
||||
#include "Core/ActionReplay.h"
|
||||
#include "Core/Boot/Boot.h"
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/Config/NetplaySettings.h"
|
||||
#include "Core/Config/SessionSettings.h"
|
||||
@ -1530,7 +1531,7 @@ void NetPlayClient::Send(const sf::Packet& packet, const u8 channel_id)
|
||||
|
||||
void NetPlayClient::DisplayPlayersPing()
|
||||
{
|
||||
if (!g_ActiveConfig.bShowNetPlayPing)
|
||||
if (!Config::Get(Config::GFX_SHOW_NETPLAY_PING))
|
||||
return;
|
||||
|
||||
OSD::AddTypedMessage(OSD::MessageType::NetPlayPing, fmt::format("Ping: {}", GetPlayersMaxPing()),
|
||||
|
@ -805,7 +805,8 @@ void NetPlayDialog::DisplayMessage(const QString& msg, const std::string& color,
|
||||
|
||||
QColor c(color.empty() ? QStringLiteral("white") : QString::fromStdString(color));
|
||||
|
||||
if (g_ActiveConfig.bShowNetPlayMessages && Core::IsRunning(Core::System::GetInstance()))
|
||||
if (Config::Get(Config::GFX_SHOW_NETPLAY_MESSAGES) &&
|
||||
Core::IsRunning(Core::System::GetInstance()))
|
||||
{
|
||||
g_netplay_chat_ui->AppendChat(msg.toStdString(),
|
||||
{static_cast<float>(c.redF()), static_cast<float>(c.greenF()),
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include "Common/Timer.h"
|
||||
|
||||
#include "Core/AchievementManager.h"
|
||||
#include "Core/Config/GraphicsSettings.h"
|
||||
#include "Core/Config/MainSettings.h"
|
||||
#include "Core/Config/NetplaySettings.h"
|
||||
#include "Core/Movie.h"
|
||||
@ -314,7 +315,7 @@ void OnScreenUI::DrawDebugText()
|
||||
if (g_ActiveConfig.bOverlayStats)
|
||||
g_stats.Display();
|
||||
|
||||
if (g_ActiveConfig.bShowNetPlayMessages && g_netplay_chat_ui)
|
||||
if (Config::Get(Config::GFX_SHOW_NETPLAY_MESSAGES) && g_netplay_chat_ui)
|
||||
g_netplay_chat_ui->Display();
|
||||
|
||||
if (Config::Get(Config::NETPLAY_GOLF_MODE_OVERLAY) && g_netplay_golf_ui)
|
||||
|
@ -101,8 +101,6 @@ void VideoConfig::Refresh()
|
||||
bShowSpeed = Config::Get(Config::GFX_SHOW_SPEED);
|
||||
bShowSpeedColors = Config::Get(Config::GFX_SHOW_SPEED_COLORS);
|
||||
iPerfSampleUSec = Config::Get(Config::GFX_PERF_SAMP_WINDOW) * 1000;
|
||||
bShowNetPlayPing = Config::Get(Config::GFX_SHOW_NETPLAY_PING);
|
||||
bShowNetPlayMessages = Config::Get(Config::GFX_SHOW_NETPLAY_MESSAGES);
|
||||
bLogRenderTimeToFile = Config::Get(Config::GFX_LOG_RENDER_TIME_TO_FILE);
|
||||
bOverlayStats = Config::Get(Config::GFX_OVERLAY_STATS);
|
||||
bOverlayProjStats = Config::Get(Config::GFX_OVERLAY_PROJ_STATS);
|
||||
|
@ -239,8 +239,6 @@ struct VideoConfig final
|
||||
bool bShowSpeed = false;
|
||||
bool bShowSpeedColors = false;
|
||||
int iPerfSampleUSec = 0;
|
||||
bool bShowNetPlayPing = false;
|
||||
bool bShowNetPlayMessages = false;
|
||||
bool bOverlayStats = false;
|
||||
bool bOverlayProjStats = false;
|
||||
bool bOverlayScissorStats = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user