mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-26 22:30:21 +00:00
Move btdrv-mitm files to their own folder
This commit is contained in:
parent
1348385a98
commit
ee211be8f8
19 changed files with 3 additions and 3 deletions
|
@ -84,17 +84,17 @@ namespace ams::bluetooth::core {
|
||||||
if (program_id == ncm::SystemProgramId::Btm) {
|
if (program_id == ncm::SystemProgramId::Btm) {
|
||||||
switch (g_current_event_type) {
|
switch (g_current_event_type) {
|
||||||
case BluetoothEvent_DeviceFound:
|
case BluetoothEvent_DeviceFound:
|
||||||
if (controller::IsGamepad(&event_data->deviceFound.cod) && !controller::IsOfficialSwitchControllerName(event_data->deviceFound.name)) {
|
if (controller::IsGamepad(&event_data->deviceFound.cod) && !controller::IsOfficialSwitchControllerName(event_data->deviceFound.name, sizeof(BluetoothName))) {
|
||||||
std::strncpy(event_data->deviceFound.name, controller::pro_controller_name, sizeof(BluetoothName) - 1);
|
std::strncpy(event_data->deviceFound.name, controller::pro_controller_name, sizeof(BluetoothName) - 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BluetoothEvent_PinRequest:
|
case BluetoothEvent_PinRequest:
|
||||||
if (!controller::IsOfficialSwitchControllerName(event_data->pinReply.name)) {
|
if (!controller::IsOfficialSwitchControllerName(event_data->pinReply.name, sizeof(BluetoothName))) {
|
||||||
std::strncpy(event_data->pinReply.name, controller::pro_controller_name, sizeof(BluetoothName) - 1);
|
std::strncpy(event_data->pinReply.name, controller::pro_controller_name, sizeof(BluetoothName) - 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BluetoothEvent_SspRequest:
|
case BluetoothEvent_SspRequest:
|
||||||
if (!controller::IsOfficialSwitchControllerName(event_data->sspReply.name)) {
|
if (!controller::IsOfficialSwitchControllerName(event_data->sspReply.name, sizeof(BluetoothName))) {
|
||||||
std::strncpy(event_data->sspReply.name, controller::pro_controller_name, sizeof(BluetoothName) - 1);
|
std::strncpy(event_data->sspReply.name, controller::pro_controller_name, sizeof(BluetoothName) - 1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
Loading…
Reference in a new issue