mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
host
This commit is contained in:
parent
8acbe8bc84
commit
9e167bf163
3 changed files with 3 additions and 3 deletions
|
@ -972,9 +972,8 @@ void NetPlayClient::OnStartGame(sf::Packet& packet)
|
||||||
void NetPlayClient::OnStopGame(sf::Packet& packet)
|
void NetPlayClient::OnStopGame(sf::Packet& packet)
|
||||||
{
|
{
|
||||||
INFO_LOG_FMT(NETPLAY, "Game stopped");
|
INFO_LOG_FMT(NETPLAY, "Game stopped");
|
||||||
|
|
||||||
StopGame();
|
StopGame();
|
||||||
m_dialog->OnMsgStopGame();
|
m_dialog->OnMsgStopGame(player.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetPlayClient::OnPowerButton()
|
void NetPlayClient::OnPowerButton()
|
||||||
|
|
|
@ -89,7 +89,7 @@ public:
|
||||||
const std::string& netplay_name) = 0;
|
const std::string& netplay_name) = 0;
|
||||||
virtual void OnMsgChangeGBARom(int pad, const NetPlay::GBAConfig& config) = 0;
|
virtual void OnMsgChangeGBARom(int pad, const NetPlay::GBAConfig& config) = 0;
|
||||||
virtual void OnMsgStartGame() = 0;
|
virtual void OnMsgStartGame() = 0;
|
||||||
virtual void OnMsgStopGame() = 0;
|
virtual void OnMsgStopGame(const std::string& player) = 0;
|
||||||
virtual void OnMsgPowerButton() = 0;
|
virtual void OnMsgPowerButton() = 0;
|
||||||
virtual void OnPlayerConnect(const std::string& player) = 0;
|
virtual void OnPlayerConnect(const std::string& player) = 0;
|
||||||
virtual void OnPlayerDisconnect(const std::string& player) = 0;
|
virtual void OnPlayerDisconnect(const std::string& player) = 0;
|
||||||
|
|
|
@ -904,6 +904,7 @@ void NetPlayDialog::OnMsgStopGame()
|
||||||
g_netplay_chat_ui.reset();
|
g_netplay_chat_ui.reset();
|
||||||
g_netplay_golf_ui.reset();
|
g_netplay_golf_ui.reset();
|
||||||
QueueOnObject(this, [this] { UpdateDiscordPresence(); });
|
QueueOnObject(this, [this] { UpdateDiscordPresence(); });
|
||||||
|
DisplayMessage(tr("%1 has stopped emulation").arg(QString::fromStdString(player)), "red");
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetPlayDialog::OnMsgPowerButton()
|
void NetPlayDialog::OnMsgPowerButton()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue