diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-03-20 21:36:32 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-03-20 21:36:32 -0700 |
commit | f328cd509d79f1b468b32bab0fbfd214705534d7 (patch) | |
tree | 6bc155e41d9422a3a78682f51dec95143f4caa49 /io.c | |
parent | cd46470996e63c540e2e3e46c7db346277b32879 (diff) |
Fix off-by one in IO port connection text output
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -391,7 +391,7 @@ cleanup_sock: } else #endif if (ports[i].device_type == IO_GAMEPAD3 || ports[i].device_type == IO_GAMEPAD6 || ports[i].device_type == IO_GAMEPAD2) { - printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num + 1, device_type_names[ports[i].device_type]); + printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num, device_type_names[ports[i].device_type]); } else { printf("IO port %s connected to device '%s'\n", io_name(i), device_type_names[ports[i].device_type]); } |