From 8b76c2e6d5e31917286b95f70a7ebca28b6c14f1 Mon Sep 17 00:00:00 2001 From: ndeadly <24677491+ndeadly@users.noreply.github.com> Date: Thu, 9 Mar 2023 19:56:15 +0100 Subject: [PATCH] stratosphere: remove union from BluetoothDevicesSettings type --- .../include/stratosphere/settings/settings_types.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libraries/libstratosphere/include/stratosphere/settings/settings_types.hpp b/libraries/libstratosphere/include/stratosphere/settings/settings_types.hpp index b34f004f2..a0996f21c 100644 --- a/libraries/libstratosphere/include/stratosphere/settings/settings_types.hpp +++ b/libraries/libstratosphere/include/stratosphere/settings/settings_types.hpp @@ -253,14 +253,9 @@ namespace ams::settings { u8 device_type; u16 brr_size; u8 brr[0x9]; - union { - u8 reserved[0x12B]; - - struct { - u8 padding; - char name2[0xF9]; - }; - }; + u8 reserved0; + char name2[0xF9]; + u8 reserved1[0x31]; }; static_assert(sizeof(BluetoothDevicesSettings) == sizeof(::SetSysBluetoothDevicesSettings));