N64: Wire up the reset and power buttons

This commit is contained in:
pjgat09 2013-05-03 21:13:23 +00:00
parent 4a9d9e09e9
commit d9f9d77712
1 changed files with 9 additions and 0 deletions

View File

@ -69,6 +69,15 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
public void FrameAdvance(bool render, bool rendersound)
{
m64pFrameComplete = false;
if (Controller["Reset"])
{
m64pCoreDoCommandPtr(m64p_command.M64CMD_RESET, 0, IntPtr.Zero);
}
if (Controller["Power"])
{
m64pCoreDoCommandPtr(m64p_command.M64CMD_RESET, 1, IntPtr.Zero);
}
/*
sbyte x = 0;
sbyte y = 0;