diff io.c @ 883:9f149f0e98b7

It is now possible to switch back and forth between the menu ROM and the game
author Michael Pavone <pavone@retrodev.com>
date Fri, 13 Nov 2015 19:15:37 -0800
parents 41f73c76b978
children 252dfd29831d
line wrap: on
line diff
--- a/io.c	Mon Nov 09 22:34:36 2015 -0800
+++ b/io.c	Fri Nov 13 19:15:37 2015 -0800
@@ -293,7 +293,7 @@
 			}
 			break;
 		case UI_EXIT:
-			exit(0);
+			genesis->m68k->should_return = 1;
 		}
 		break;
 	}
@@ -609,7 +609,7 @@
 				close(ports[i].device.stream.listen_fd);
 				ports[i].device_type = IO_NONE;
 			}
-		} else 
+		} else
 #endif
 		if (ports[i].device_type == IO_GAMEPAD3 || ports[i].device_type == IO_GAMEPAD6) {
 			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]);
@@ -672,7 +672,7 @@
 	if (pads) {
 		for (int i = 0; i < 100 && i < render_num_joysticks(); i++)
 		{
-		
+
 			if (i < 10) {
 				numstr[0] = i + '0';
 				numstr[1] = 0;