add some setters for MelonDS
This commit is contained in:
parent
c958afceb0
commit
a57d09fe99
|
@ -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);
|
||||
|
|
|
@ -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.
Loading…
Reference in New Issue