aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2020-08-13 01:04:59 +0200
committerGitHub <noreply@github.com>2020-08-13 01:04:59 +0200
commit1ad9045c6b00a5c729c8c7d697f3da54ed177883 (patch)
tree31f4328c4ec512420d44bb63fa712d8ab44dcfca /Ryujinx.HLE/HOS/Services
parent58f65b6523fb25d989b011c51f963520c811f9f0 (diff)
bluetooth: Fix event handle in IBluetoothDriver (#1464)
This fix the InitializeBluetoothLe call who didn't return any event handle
Diffstat (limited to 'Ryujinx.HLE/HOS/Services')
-rw-r--r--Ryujinx.HLE/HOS/Services/Bluetooth/IBluetoothDriver.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Bluetooth/IBluetoothDriver.cs b/Ryujinx.HLE/HOS/Services/Bluetooth/IBluetoothDriver.cs
index d94030fa..2011e2ab 100644
--- a/Ryujinx.HLE/HOS/Services/Bluetooth/IBluetoothDriver.cs
+++ b/Ryujinx.HLE/HOS/Services/Bluetooth/IBluetoothDriver.cs
@@ -1,4 +1,5 @@
-using Ryujinx.HLE.HOS.Kernel.Common;
+using Ryujinx.HLE.HOS.Ipc;
+using Ryujinx.HLE.HOS.Kernel.Common;
using Ryujinx.HLE.HOS.Kernel.Threading;
using Ryujinx.HLE.HOS.Services.Bluetooth.BluetoothDriver;
using Ryujinx.HLE.HOS.Services.Settings;
@@ -21,6 +22,8 @@ namespace Ryujinx.HLE.HOS.Services.Bluetooth
{
NxSettings.Settings.TryGetValue("bluetooth_debug!skip_boot", out object debugMode);
+ int initializeEventHandle;
+
if ((bool)debugMode)
{
if (BluetoothEventManager.InitializeBleDebugEventHandle == 0)
@@ -52,6 +55,8 @@ namespace Ryujinx.HLE.HOS.Services.Bluetooth
throw new InvalidOperationException("Out of handles!");
}
}
+
+ initializeEventHandle = BluetoothEventManager.InitializeBleDebugEventHandle;
}
else
{
@@ -86,8 +91,12 @@ namespace Ryujinx.HLE.HOS.Services.Bluetooth
throw new InvalidOperationException("Out of handles!");
}
}
+
+ initializeEventHandle = BluetoothEventManager.InitializeBleEventHandle;
}
+ context.Response.HandleDesc = IpcHandleDesc.MakeCopy(initializeEventHandle);
+
return ResultCode.Success;
}
}