Expand InitializeDeviceNative Signature

This commit is contained in:
Isaac Marovitz 2024-01-02 12:11:23 -08:00 committed by Emmanuel Hansen
parent 29a0c1caed
commit 5f18d19f23

View File

@ -16,9 +16,27 @@ namespace LibRyujinx
public static partial class LibRyujinx public static partial class LibRyujinx
{ {
[UnmanagedCallersOnly(EntryPoint = "device_initialize")] [UnmanagedCallersOnly(EntryPoint = "device_initialize")]
public static bool InitializeDeviceNative() public static bool InitializeDeviceNative(bool isHostMapped,
bool useNce,
SystemLanguage systemLanguage,
RegionCode regionCode,
bool enableVsync,
bool enableDockedMode,
bool enablePtc,
bool enableInternetAccess,
IntPtr timeZone,
bool ignoreMissingServices)
{ {
return InitializeDevice(true, false, SystemLanguage.AmericanEnglish, RegionCode.USA, true, true, true, false, "UTC", false); return InitializeDevice(isHostMapped,
useNce,
systemLanguage,
regionCode,
enableVsync,
enableDockedMode,
enablePtc,
enableInternetAccess,
Marshal.PtrToStringAnsi(timeZone),
ignoreMissingServices);
} }
[UnmanagedCallersOnly(EntryPoint = "device_reloadFilesystem")] [UnmanagedCallersOnly(EntryPoint = "device_reloadFilesystem")]