2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

hid: Use HID_NUM_LAYOUTS constant for indicating size of the layouts array

Gets rid of the use of a magic constant
This commit is contained in:
Lioncash 2018-07-19 15:07:34 -04:00
parent 427fc4ac6b
commit 95103a1b7b

View file

@ -380,7 +380,7 @@ static_assert(sizeof(ControllerLayout) == 0x350,
struct Controller { struct Controller {
ControllerHeader header; ControllerHeader header;
std::array<ControllerLayout, 7> layouts; std::array<ControllerLayout, HID_NUM_LAYOUTS> layouts;
std::array<u8, 0x2a70> unk_1; std::array<u8, 0x2a70> unk_1;
ControllerMAC mac_left; ControllerMAC mac_left;
ControllerMAC mac_right; ControllerMAC mac_right;