mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoConfig: Eliminate NetPlay related members.
This commit is contained in:
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
#include "Core/ActionReplay.h"
|
#include "Core/ActionReplay.h"
|
||||||
#include "Core/Boot/Boot.h"
|
#include "Core/Boot/Boot.h"
|
||||||
|
#include "Core/Config/GraphicsSettings.h"
|
||||||
#include "Core/Config/MainSettings.h"
|
#include "Core/Config/MainSettings.h"
|
||||||
#include "Core/Config/NetplaySettings.h"
|
#include "Core/Config/NetplaySettings.h"
|
||||||
#include "Core/Config/SessionSettings.h"
|
#include "Core/Config/SessionSettings.h"
|
||||||
@ -1530,7 +1531,7 @@ void NetPlayClient::Send(const sf::Packet& packet, const u8 channel_id)
|
|||||||
|
|
||||||
void NetPlayClient::DisplayPlayersPing()
|
void NetPlayClient::DisplayPlayersPing()
|
||||||
{
|
{
|
||||||
if (!g_ActiveConfig.bShowNetPlayPing)
|
if (!Config::Get(Config::GFX_SHOW_NETPLAY_PING))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
OSD::AddTypedMessage(OSD::MessageType::NetPlayPing, fmt::format("Ping: {}", GetPlayersMaxPing()),
|
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));
|
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(),
|
g_netplay_chat_ui->AppendChat(msg.toStdString(),
|
||||||
{static_cast<float>(c.redF()), static_cast<float>(c.greenF()),
|
{static_cast<float>(c.redF()), static_cast<float>(c.greenF()),
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
#include "Common/Timer.h"
|
#include "Common/Timer.h"
|
||||||
|
|
||||||
#include "Core/AchievementManager.h"
|
#include "Core/AchievementManager.h"
|
||||||
|
#include "Core/Config/GraphicsSettings.h"
|
||||||
#include "Core/Config/MainSettings.h"
|
#include "Core/Config/MainSettings.h"
|
||||||
#include "Core/Config/NetplaySettings.h"
|
#include "Core/Config/NetplaySettings.h"
|
||||||
#include "Core/Movie.h"
|
#include "Core/Movie.h"
|
||||||
@ -314,7 +315,7 @@ void OnScreenUI::DrawDebugText()
|
|||||||
if (g_ActiveConfig.bOverlayStats)
|
if (g_ActiveConfig.bOverlayStats)
|
||||||
g_stats.Display();
|
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();
|
g_netplay_chat_ui->Display();
|
||||||
|
|
||||||
if (Config::Get(Config::NETPLAY_GOLF_MODE_OVERLAY) && g_netplay_golf_ui)
|
if (Config::Get(Config::NETPLAY_GOLF_MODE_OVERLAY) && g_netplay_golf_ui)
|
||||||
|
@ -104,8 +104,6 @@ void VideoConfig::Refresh()
|
|||||||
bShowSpeed = Config::Get(Config::GFX_SHOW_SPEED);
|
bShowSpeed = Config::Get(Config::GFX_SHOW_SPEED);
|
||||||
bShowSpeedColors = Config::Get(Config::GFX_SHOW_SPEED_COLORS);
|
bShowSpeedColors = Config::Get(Config::GFX_SHOW_SPEED_COLORS);
|
||||||
iPerfSampleUSec = Config::Get(Config::GFX_PERF_SAMP_WINDOW) * 1000;
|
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);
|
bLogRenderTimeToFile = Config::Get(Config::GFX_LOG_RENDER_TIME_TO_FILE);
|
||||||
bOverlayStats = Config::Get(Config::GFX_OVERLAY_STATS);
|
bOverlayStats = Config::Get(Config::GFX_OVERLAY_STATS);
|
||||||
bOverlayProjStats = Config::Get(Config::GFX_OVERLAY_PROJ_STATS);
|
bOverlayProjStats = Config::Get(Config::GFX_OVERLAY_PROJ_STATS);
|
||||||
|
@ -239,8 +239,6 @@ struct VideoConfig final
|
|||||||
bool bShowSpeed = false;
|
bool bShowSpeed = false;
|
||||||
bool bShowSpeedColors = false;
|
bool bShowSpeedColors = false;
|
||||||
int iPerfSampleUSec = 0;
|
int iPerfSampleUSec = 0;
|
||||||
bool bShowNetPlayPing = false;
|
|
||||||
bool bShowNetPlayMessages = false;
|
|
||||||
bool bOverlayStats = false;
|
bool bOverlayStats = false;
|
||||||
bool bOverlayProjStats = false;
|
bool bOverlayProjStats = false;
|
||||||
bool bOverlayScissorStats = false;
|
bool bOverlayScissorStats = false;
|
||||||
|
Reference in New Issue
Block a user