Move btdrv-mitm files to their own folder

This commit is contained in:
ndeadly 2020-09-08 16:15:36 +02:00
parent 1348385a98
commit ee211be8f8
19 changed files with 3 additions and 3 deletions

View file

@ -84,17 +84,17 @@ namespace ams::bluetooth::core {
if (program_id == ncm::SystemProgramId::Btm) {
switch (g_current_event_type) {
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);
}
break;
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);
}
break;
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);
}
break;