Lua - implement client.reboot_core()

This commit is contained in:
adelikat 2013-08-28 19:32:09 +00:00
parent fab3d0cb60
commit a896252b5c
2 changed files with 7 additions and 2 deletions

View File

@ -548,7 +548,8 @@ namespace BizHawk.MultiClient
"screenshottoclipboard",
"setscreenshotosd",
"pause_av",
"unpause_av"
"unpause_av",
"reboot_core",
};
public static string[] FormsFunctions = new[]
@ -1378,6 +1379,10 @@ namespace BizHawk.MultiClient
Global.MainForm.PauseAVI = false;
}
public void client_reboot_core()
{
Global.MainForm.RebootCore();
}
//----------------------------------------------------
//Memory library
//----------------------------------------------------

View File

@ -412,7 +412,7 @@ namespace BizHawk.MultiClient
RebootCore();
}
void RebootCore()
public void RebootCore()
{
LoadRom(CurrentlyOpenRom);
}