mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-02 21:36:25 +02:00
add more parameters to initialize device
This commit is contained in:
parent
28eb812018
commit
2d39deba26
3 changed files with 65 additions and 16 deletions
|
@ -21,6 +21,7 @@ using Microsoft.Win32.SafeHandles;
|
|||
using Newtonsoft.Json.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using LibHac.Tools.Fs;
|
||||
using Ryujinx.HLE.HOS.SystemState;
|
||||
|
||||
namespace LibRyujinx
|
||||
{
|
||||
|
@ -90,9 +91,29 @@ namespace LibRyujinx
|
|||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "Java_org_ryujinx_android_RyujinxNative_deviceInitialize")]
|
||||
public static JBoolean JniInitializeDeviceNative(JEnvRef jEnv, JObjectLocalRef jObj, JBoolean isHostMapped, JBoolean useNce)
|
||||
public static JBoolean JniInitializeDeviceNative(JEnvRef jEnv,
|
||||
JObjectLocalRef jObj,
|
||||
JBoolean isHostMapped,
|
||||
JBoolean useNce,
|
||||
JInt systemLanguage,
|
||||
JInt regionCode,
|
||||
JBoolean enableVsync,
|
||||
JBoolean enableDockedMode,
|
||||
JBoolean enablePtc,
|
||||
JBoolean enableInternetAccess,
|
||||
JStringLocalRef timeZone,
|
||||
JBoolean ignoreMissingServices)
|
||||
{
|
||||
return InitializeDevice(isHostMapped, useNce);
|
||||
return InitializeDevice(isHostMapped,
|
||||
useNce,
|
||||
(SystemLanguage)(int)systemLanguage,
|
||||
(RegionCode)(int)regionCode,
|
||||
enableVsync,
|
||||
enableDockedMode,
|
||||
enablePtc,
|
||||
enableInternetAccess,
|
||||
GetString(jEnv, timeZone),
|
||||
ignoreMissingServices);
|
||||
}
|
||||
|
||||
[UnmanagedCallersOnly(EntryPoint = "Java_org_ryujinx_android_RyujinxNative_deviceGetGameStats")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue