add some setters for MelonDS

This commit is contained in:
SuuperW 2020-04-13 12:26:42 -05:00
parent c958afceb0
commit a57d09fe99
3 changed files with 10 additions and 2 deletions

View File

@ -62,6 +62,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
private static extern void _ResetCounters();
[DllImport(dllPath)]
private static extern int GetFrameCount();
[DllImport(dllPath)]
private static extern void SetFrameCount(uint count);
[DllImport(dllPath)]
private static extern void FrameAdvance(short buttons, byte touchX, byte touchY);

View File

@ -10,13 +10,13 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
public int LagCount
{
get => GetLagFrameCount();
set => throw new NotImplementedException();
set => SetLagFrameCount((uint)value);
}
public bool IsLagFrame
{
get => _IsLagFrame();
set => throw new NotImplementedException();
set => SetIsLagFrame(value);
}
public IInputCallbackSystem InputCallbacks => throw new NotImplementedException();
@ -26,5 +26,11 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
[DllImport(dllPath)]
private static extern int GetLagFrameCount();
[DllImport(dllPath)]
private static extern void SetIsLagFrame(bool isLag);
[DllImport(dllPath)]
private static extern void SetLagFrameCount(uint count);
}
}

Binary file not shown.