lua - implement client.exit()
This commit is contained in:
parent
a8fc79910f
commit
ad821c90d5
|
@ -590,6 +590,11 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ExitMenuItem_Click(object sender, EventArgs e)
|
private void ExitMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
CloseEmulator();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void CloseEmulator()
|
||||||
{
|
{
|
||||||
if (GlobalWin.Tools.AskSave())
|
if (GlobalWin.Tools.AskSave())
|
||||||
{
|
{
|
||||||
|
|
|
@ -36,6 +36,15 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public override string Name { get { return "client"; } }
|
public override string Name { get { return "client"; } }
|
||||||
|
|
||||||
|
[LuaMethodAttributes(
|
||||||
|
"exit",
|
||||||
|
"Closes the emulator"
|
||||||
|
)]
|
||||||
|
public void CloseEmulator()
|
||||||
|
{
|
||||||
|
GlobalWin.MainForm.CloseEmulator();
|
||||||
|
}
|
||||||
|
|
||||||
[LuaMethodAttributes(
|
[LuaMethodAttributes(
|
||||||
"borderheight",
|
"borderheight",
|
||||||
"Gets the current height in pixels of the border around the emulator's drawing area"
|
"Gets the current height in pixels of the border around the emulator's drawing area"
|
||||||
|
|
Loading…
Reference in New Issue