mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +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)
|
||||
{
|
||||
INFO_LOG_FMT(NETPLAY, "Game stopped");
|
||||
|
||||
StopGame();
|
||||
m_dialog->OnMsgStopGame();
|
||||
m_dialog->OnMsgStopGame(player.name);
|
||||
}
|
||||
|
||||
void NetPlayClient::OnPowerButton()
|
||||
|
|
|
@ -89,7 +89,7 @@ public:
|
|||
const std::string& netplay_name) = 0;
|
||||
virtual void OnMsgChangeGBARom(int pad, const NetPlay::GBAConfig& config) = 0;
|
||||
virtual void OnMsgStartGame() = 0;
|
||||
virtual void OnMsgStopGame() = 0;
|
||||
virtual void OnMsgStopGame(const std::string& player) = 0;
|
||||
virtual void OnMsgPowerButton() = 0;
|
||||
virtual void OnPlayerConnect(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_golf_ui.reset();
|
||||
QueueOnObject(this, [this] { UpdateDiscordPresence(); });
|
||||
DisplayMessage(tr("%1 has stopped emulation").arg(QString::fromStdString(player)), "red");
|
||||
}
|
||||
|
||||
void NetPlayDialog::OnMsgPowerButton()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue