comparison io.c @ 884:252dfd29831d

Selecting a second game from the menu now works
author Michael Pavone <pavone@retrodev.com>
date Fri, 13 Nov 2015 22:56:59 -0800
parents 9f149f0e98b7
children fb1f11fd0692
comparison
equal deleted inserted replaced
883:9f149f0e98b7 884:252dfd29831d
740 if (!speeds[i]) { 740 if (!speeds[i]) {
741 fprintf(stderr, "Speed index %d was not set to a valid percentage!", i); 741 fprintf(stderr, "Speed index %d was not set to a valid percentage!", i);
742 speeds[i] = 100; 742 speeds[i] = 100;
743 } 743 }
744 } 744 }
745 map_all_bindings(ports);
746 }
747
748 void map_all_bindings(io_port *ports)
749 {
745 for (int bucket = 0; bucket < 256; bucket++) 750 for (int bucket = 0; bucket < 256; bucket++)
746 { 751 {
747 if (bindings[bucket]) 752 if (bindings[bucket])
748 { 753 {
749 map_bindings(ports, bindings[bucket], 256); 754 map_bindings(ports, bindings[bucket], 256);