comparison menu.c @ 949:5e4fb650de58

Make Exit option in menu work
author Michael Pavone <pavone@retrodev.com>
date Sat, 19 Mar 2016 17:53:50 -0700
parents 05b0a0d4fa40
children cbc5b39e5518
comparison
equal deleted inserted replaced
946:6b90ec50daf3 949:5e4fb650de58
188 copy_string_from_guest(m68k, dst, buf, sizeof(buf)); 188 copy_string_from_guest(m68k, dst, buf, sizeof(buf));
189 char const *pieces[] = {menu->curpath, "/", buf}; 189 char const *pieces[] = {menu->curpath, "/", buf};
190 gen->next_rom = alloc_concat_m(3, pieces); 190 gen->next_rom = alloc_concat_m(3, pieces);
191 m68k->should_return = 1; 191 m68k->should_return = 1;
192 break; 192 break;
193 case 3: {
194 m68k->should_return = 1;
195 gen->should_exit = 1;
196 break;
197 }
193 } 198 }
194 default: 199 default:
195 fprintf(stderr, "WARNING: write to undefined menu port %X\n", address); 200 fprintf(stderr, "WARNING: write to undefined menu port %X\n", address);
196 } 201 }
197 menu->state = 0; 202 menu->state = 0;