mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-05 06:46:26 +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()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<DefineConstants Condition=" '$(ExtraDefineConstants)' != '' ">$(DefineConstants);$(ExtraDefineConstants)</DefineConstants>
|
||||
<SigningCertificate Condition=" '$(SigningCertificate)' == '' ">-</SigningCertificate>
|
||||
<TieredPGO>true</TieredPGO>
|
||||
|
||||
|
||||
<PublishAot>true</PublishAot>
|
||||
<PublishAotUsingRuntimePack>true</PublishAotUsingRuntimePack>
|
||||
<UseNativeAOTRuntime>true</UseNativeAOTRuntime>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue