summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Android/jni/NetPlay/NetPlayUICallbacks.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Android/jni/NetPlay/NetPlayUICallbacks.cpp b/Source/Android/jni/NetPlay/NetPlayUICallbacks.cpp
index 018d5556dd..2ea0b814a7 100644
--- a/Source/Android/jni/NetPlay/NetPlayUICallbacks.cpp
+++ b/Source/Android/jni/NetPlay/NetPlayUICallbacks.cpp
@@ -2,9 +2,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later
#include "UICommon/GameFile.h"
+#include "UICommon/UICommon.h"
#include "NetPlayUICallbacks.h"
#include "Core/Boot/Boot.h"
#include "Core/Core.h"
+#include "Core/System.h"
#include "jni/AndroidCommon/AndroidCommon.h"
#include "jni/AndroidCommon/IDCache.h"
@@ -169,7 +171,13 @@ void NetPlayUICallbacks::OnMsgStartGame()
}
void NetPlayUICallbacks::OnMsgStopGame() {}
-void NetPlayUICallbacks::OnMsgPowerButton() {}
+
+void NetPlayUICallbacks::OnMsgPowerButton()
+{
+ if (Core::IsRunning(Core::System::GetInstance()))
+ UICommon::TriggerSTMPowerEvent();
+}
+
void NetPlayUICallbacks::OnPlayerConnect(const std::string&) {}
void NetPlayUICallbacks::OnPlayerDisconnect(const std::string&) {}