From b5714296d6bc2b5a014942ac88e2f72ca7658a8c Mon Sep 17 00:00:00 2001 From: ndeadly <24677491+ndeadly@users.noreply.github.com> Date: Fri, 24 Sep 2021 22:54:56 +0200 Subject: [PATCH] setsys: update SetSysBluetoothDevicesSettings for 13.0.0 --- nx/include/switch/services/set.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nx/include/switch/services/set.h b/nx/include/switch/services/set.h index fda83166..5c2c1c1a 100644 --- a/nx/include/switch/services/set.h +++ b/nx/include/switch/services/set.h @@ -312,7 +312,7 @@ typedef struct { /// BluetoothDevicesSettings typedef struct { BtdrvAddress addr; ///< \ref BtdrvAddress - BtmBdName name; ///< BdName + BtmBdName name; ///< BdName. Unused on 13.0.0+ BtmClassOfDevice class_of_device; ///< ClassOfDevice u8 link_key[0x10]; ///< LinkKey u8 link_key_present; ///< LinkKeyPresent @@ -328,7 +328,14 @@ typedef struct { u8 device_type; ///< DeviceType u16 brr_size; ///< BrrSize u8 brr[0x9]; ///< Brr - u8 reserved[0x12B]; ///< Reserved + union { + u8 reserved[0x12B]; ///< Reserved [1.0.0-12.1.0] + + struct { + u8 pad; ///< Padding + char name2[0xF9]; ///< Name + }; ///< [13.0.0+] + }; } SetSysBluetoothDevicesSettings; /// Structure returned by \ref setsysGetFirmwareVersion.