mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 20:50:18 +00:00
Add ability to restart emulation in Actions menu.
This commit is contained in:
parent
86b37d0ff7
commit
514bc71d29
2 changed files with 21 additions and 0 deletions
|
@ -101,6 +101,7 @@ namespace Ryujinx.Ui
|
||||||
[GUI] MenuItem _pauseEmulation;
|
[GUI] MenuItem _pauseEmulation;
|
||||||
[GUI] MenuItem _resumeEmulation;
|
[GUI] MenuItem _resumeEmulation;
|
||||||
[GUI] MenuItem _stopEmulation;
|
[GUI] MenuItem _stopEmulation;
|
||||||
|
[GUI] MenuItem _restartEmulation;
|
||||||
[GUI] MenuItem _simulateWakeUpMessage;
|
[GUI] MenuItem _simulateWakeUpMessage;
|
||||||
[GUI] MenuItem _scanAmiibo;
|
[GUI] MenuItem _scanAmiibo;
|
||||||
[GUI] MenuItem _takeScreenshot;
|
[GUI] MenuItem _takeScreenshot;
|
||||||
|
@ -1318,6 +1319,15 @@ namespace Ryujinx.Ui
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void RestartEmulation_Pressed(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
if (_emulationContext != null)
|
||||||
|
{
|
||||||
|
_userChannelPersistence.ExecuteProgram(HLE.HOS.Services.Am.AppletOE.ApplicationProxyService.ApplicationProxy.Types.ProgramSpecifyKind.RestartProgram, 0);
|
||||||
|
StopEmulation_Pressed(sender, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void StopEmulation_Pressed(object sender, EventArgs args)
|
private void StopEmulation_Pressed(object sender, EventArgs args)
|
||||||
{
|
{
|
||||||
if (_emulationContext != null)
|
if (_emulationContext != null)
|
||||||
|
@ -1327,6 +1337,7 @@ namespace Ryujinx.Ui
|
||||||
|
|
||||||
_pauseEmulation.Sensitive = false;
|
_pauseEmulation.Sensitive = false;
|
||||||
_resumeEmulation.Sensitive = false;
|
_resumeEmulation.Sensitive = false;
|
||||||
|
|
||||||
RendererWidget?.Exit();
|
RendererWidget?.Exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -323,6 +323,16 @@
|
||||||
<signal name="activate" handler="StopEmulation_Pressed" swapped="no"/>
|
<signal name="activate" handler="StopEmulation_Pressed" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuItem" id="_restartEmulation">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
|
<property name="tooltip_text" translatable="yes">Restart of the current game</property>
|
||||||
|
<property name="label" translatable="yes">Restart Emulation</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
|
<signal name="activate" handler="RestartEmulation_Pressed" swapped="no"/>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkSeparatorMenuItem">
|
<object class="GtkSeparatorMenuItem">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
|
Loading…
Reference in a new issue