Removed Redundant assignement of name inside configure_joypad function
(cherry picked from commit 1add8b3172
)
This commit is contained in:
parent
eb31a39e82
commit
843c2a3dd8
1 changed files with 2 additions and 1 deletions
|
@ -293,8 +293,9 @@ bool JoypadOSX::configure_joypad(IOHIDDeviceRef p_device_ref, joypad *p_joy) {
|
||||||
}
|
}
|
||||||
if ((!refCF) || (!CFStringGetCString((CFStringRef)refCF, c_name, sizeof(c_name), kCFStringEncodingUTF8))) {
|
if ((!refCF) || (!CFStringGetCString((CFStringRef)refCF, c_name, sizeof(c_name), kCFStringEncodingUTF8))) {
|
||||||
name = "Unidentified Joypad";
|
name = "Unidentified Joypad";
|
||||||
|
} else {
|
||||||
|
name = c_name;
|
||||||
}
|
}
|
||||||
name = c_name;
|
|
||||||
|
|
||||||
int id = input->get_unused_joy_id();
|
int id = input->get_unused_joy_id();
|
||||||
ERR_FAIL_COND_V(id == -1, false);
|
ERR_FAIL_COND_V(id == -1, false);
|
||||||
|
|
Loading…
Reference in a new issue