Mercurial > repos > blastem
comparison io.c @ 1791:1843823f1e9b
Fix off-by one in IO port connection text output
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 20 Mar 2019 21:36:32 -0700 |
parents | eda8df5bc74c |
children | 52a47611a273 |
comparison
equal
deleted
inserted
replaced
1790:a29f35c47da4 | 1791:1843823f1e9b |
---|---|
389 ports[i].device_type = IO_NONE; | 389 ports[i].device_type = IO_NONE; |
390 } | 390 } |
391 } else | 391 } else |
392 #endif | 392 #endif |
393 if (ports[i].device_type == IO_GAMEPAD3 || ports[i].device_type == IO_GAMEPAD6 || ports[i].device_type == IO_GAMEPAD2) { | 393 if (ports[i].device_type == IO_GAMEPAD3 || ports[i].device_type == IO_GAMEPAD6 || ports[i].device_type == IO_GAMEPAD2) { |
394 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]); | 394 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]); |
395 } else { | 395 } else { |
396 printf("IO port %s connected to device '%s'\n", io_name(i), device_type_names[ports[i].device_type]); | 396 printf("IO port %s connected to device '%s'\n", io_name(i), device_type_names[ports[i].device_type]); |
397 } | 397 } |
398 } | 398 } |
399 } | 399 } |