mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
WiimoteReal: Check just the start of Bluetooth device names to match the test performed by Wii software.
This commit is contained in:
parent
81f620ba97
commit
c2b5a1a35c
@ -1028,12 +1028,14 @@ bool IsValidDeviceName(std::string_view name)
|
||||
|
||||
bool IsWiimoteName(std::string_view name)
|
||||
{
|
||||
return name == "Nintendo RVL-CNT-01" || name == "Nintendo RVL-CNT-01-TR";
|
||||
// Wii software similarly checks just the start of the name.
|
||||
return name.starts_with("Nintendo RVL-CNT");
|
||||
}
|
||||
|
||||
bool IsBalanceBoardName(std::string_view name)
|
||||
{
|
||||
return "Nintendo RVL-WBC-01" == name;
|
||||
// Wii software similarly checks just the start of the name.
|
||||
return name.starts_with("Nintendo RVL-WBC");
|
||||
}
|
||||
|
||||
// This is called from the scanner backends (currently on the scanner thread).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user