summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorTom Pratt <tom.pratt@outlook.com>2026-05-02 15:21:44 +0200
committerTom Pratt <tompratt@squareup.com>2026-05-19 12:02:59 +0200
commitf9baecd5eda524a0227ed4697b6853fb1a446b18 (patch)
tree5ced5d5a7326b4e6e6a0e536f5736692498cfd7f /Source
parentacbf9e155f8e0397e6bfa2f3d00bad0e5f5ecbcf (diff)
Implement OnMsgPowerButton
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&) {}