Add a bunch of features

This commit is contained in:
Stossy11 2024-12-23 16:34:14 +11:00
parent 81941f9e9f
commit 0968360e08
17 changed files with 410 additions and 147 deletions

View file

@ -147,6 +147,21 @@ namespace Ryujinx.Headless.SDL2
return 0;
}
[UnmanagedCallersOnly(EntryPoint = "get_current_fps")]
public static unsafe int GetFPS()
{
if (_window != null) {
Switch Device = _window.Device;
int intValue = (int)Device.Statistics.GetGameFrameRate();
return intValue;
}
return 0;
}
[UnmanagedCallersOnly(EntryPoint = "initialize")]
public static unsafe void Initialize()
{