Implement OnMsgPowerButton
This commit is contained in:
1 parent
acbf9e155f
commit
f9baecd5ed
1 file changed
+9
-1
@@ -2,9 +2,11 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
#include "UICommon/GameFile.h"
|
#include "UICommon/GameFile.h"
|
||||||
|
#include "UICommon/UICommon.h"
|
||||||
#include "NetPlayUICallbacks.h"
|
#include "NetPlayUICallbacks.h"
|
||||||
#include "Core/Boot/Boot.h"
|
#include "Core/Boot/Boot.h"
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
|
#include "Core/System.h"
|
||||||
#include "jni/AndroidCommon/AndroidCommon.h"
|
#include "jni/AndroidCommon/AndroidCommon.h"
|
||||||
#include "jni/AndroidCommon/IDCache.h"
|
#include "jni/AndroidCommon/IDCache.h"
|
||||||
|
|
||||||
@@ -169,7 +171,13 @@ void NetPlayUICallbacks::OnMsgStartGame()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NetPlayUICallbacks::OnMsgStopGame() {}
|
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::OnPlayerConnect(const std::string&) {}
|
||||||
void NetPlayUICallbacks::OnPlayerDisconnect(const std::string&) {}
|
void NetPlayUICallbacks::OnPlayerDisconnect(const std::string&) {}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user