nsyshid: Silence some logging in release builds

This commit is contained in:
Exzap 2024-08-06 22:58:23 +02:00
parent 1575866eca
commit d81eb952a4

View File

@ -67,13 +67,6 @@ namespace nsyshid::backend::windows
device->m_productId); device->m_productId);
} }
} }
else
{
cemuLog_log(LogType::Force,
"nsyshid::BackendWindowsHID: device not on whitelist: {:04x}:{:04x}",
device->m_vendorId,
device->m_productId);
}
} }
CloseHandle(hHIDDevice); CloseHandle(hHIDDevice);
} }
@ -125,14 +118,12 @@ namespace nsyshid::backend::windows
} }
if (maxPacketInputLength <= 0 || maxPacketInputLength >= 0xF000) if (maxPacketInputLength <= 0 || maxPacketInputLength >= 0xF000)
{ {
cemuLog_log(LogType::Force, "HID: Input packet length not available or out of range (length = {})", cemuLog_logDebug(LogType::Force, "HID: Input packet length not available or out of range (length = {})", maxPacketInputLength);
maxPacketInputLength);
maxPacketInputLength = 0x20; maxPacketInputLength = 0x20;
} }
if (maxPacketOutputLength <= 0 || maxPacketOutputLength >= 0xF000) if (maxPacketOutputLength <= 0 || maxPacketOutputLength >= 0xF000)
{ {
cemuLog_log(LogType::Force, "HID: Output packet length not available or out of range (length = {})", cemuLog_logDebug(LogType::Force, "HID: Output packet length not available or out of range (length = {})", maxPacketOutputLength);
maxPacketOutputLength);
maxPacketOutputLength = 0x20; maxPacketOutputLength = 0x20;
} }