mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-08-02 07:07:12 +02:00
am/gui: Implement Wake-up message (#1750)
* am/gui: Implement Wake-up message. This implement the ability to send a Wake-up (Resume) message to the guest. Sometime games needs to Sleep and Wake-up the switch to unlock some ingame features. * Address gdkchan feedback
This commit is contained in:
parent
be876cc8f8
commit
cdf27f85d9
6 changed files with 45 additions and 26 deletions
|
@ -1205,6 +1205,11 @@ namespace Ryujinx.Ui
|
|||
settingsWin.Show();
|
||||
}
|
||||
|
||||
private void Simulate_WakeUp_Message_Pressed(object sender, EventArgs args)
|
||||
{
|
||||
_emulationContext.System.SimulateWakeUpMessage();
|
||||
}
|
||||
|
||||
private void Update_Pressed(object sender, EventArgs args)
|
||||
{
|
||||
if (Updater.CanUpdate(true))
|
||||
|
|
|
@ -137,6 +137,16 @@
|
|||
<signal name="activate" handler="StopEmulation_Pressed" swapped="no"/>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkMenuItem" id="SimulateWakeUpMessage">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Simulate a Wake-up Message</property>
|
||||
<property name="label" translatable="yes">Simulate Wake-up Message</property>
|
||||
<property name="use_underline">True</property>
|
||||
<signal name="activate" handler="Simulate_WakeUp_Message_Pressed" swapped="no"/>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparatorMenuItem">
|
||||
<property name="visible">True</property>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue