summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorvitika9 <vitika.program@gmail.com>2021-07-27 14:51:42 +0530
committervitika9 <vitika.program@gmail.com>2021-07-27 14:51:42 +0530
commit1add8b3172612d82bd0901824a212114ae60d6c0 (patch)
tree53452bab020c898cd3af48b48da2aa6b4a10e569 /platform
parent7cbdb9b4c36dfd44ab120d5bce37f0a27439ca6b (diff)
Removed Redundant assignement of name inside configure_joypad function
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/joypad_osx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/osx/joypad_osx.cpp b/platform/osx/joypad_osx.cpp
index 126ebc1908..d778271350 100644
--- a/platform/osx/joypad_osx.cpp
+++ b/platform/osx/joypad_osx.cpp
@@ -286,8 +286,9 @@ bool JoypadOSX::configure_joypad(IOHIDDeviceRef p_device_ref, joypad *p_joy) {
}
if ((!refCF) || (!CFStringGetCString((CFStringRef)refCF, c_name, sizeof(c_name), kCFStringEncodingUTF8))) {
name = "Unidentified Joypad";
+ } else {
+ name = c_name;
}
- name = c_name;
int id = input->get_unused_joy_id();
ERR_FAIL_COND_V(id == -1, false);