mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 03:16:23 +02:00
Add a bunch of features
This commit is contained in:
parent
81941f9e9f
commit
0968360e08
17 changed files with 410 additions and 147 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue