mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
btm: update AddDeviceInfo for 13.0.0
This commit is contained in:
parent
7c667c4dbf
commit
e2b864a9f2
@ -223,7 +223,10 @@ Result btmGetDeviceInfo(u32 id, BtmDeviceInfoV13 *out, size_t count, s32 *total_
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result btmAddDeviceInfo(const BtmDeviceInfo *info) {
|
Result btmAddDeviceInfo(const BtmDeviceInfo *info) {
|
||||||
return serviceDispatchIn(&g_btmSrv, 10, *info);
|
if (hosversionBefore(13,0,0))
|
||||||
|
return serviceDispatchIn(&g_btmSrv, 10, (*info).v1);
|
||||||
|
|
||||||
|
return _btmCmdInBufPtrFixed(info, sizeof((*info).v13), 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result btmRemoveDeviceInfo(BtdrvAddress addr) {
|
Result btmRemoveDeviceInfo(BtdrvAddress addr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user