Changeset e41c6b6 in buchla-emu
- Timestamp:
- 07/20/2017 07:26:42 PM (7 years ago)
- Branches:
- master
- Children:
- 90d6373
- Parents:
- 555b171
- Location:
- emu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
emu/cpu.c
r555b171 re41c6b6 450 450 m68k_pulse_reset(); 451 451 452 while (true) { 452 bool run = true; 453 454 while (run) { 453 455 m68k_execute(CYCLES); 454 456 hw_exec(); 455 } 456 } 457 458 SDL_Event ev; 459 460 while (SDL_PollEvent(&ev) > 0) { 461 if (ev.type == SDL_QUIT) { 462 run = false; 463 break; 464 } 465 } 466 } 467 468 inf("leaving CPU loop"); 469 } -
emu/sdl.c
r555b171 re41c6b6 28 28 void sdl_init(void) 29 29 { 30 if (SDL_Init(SDL_INIT_VIDEO ) < 0) {30 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS) < 0) { 31 31 fprintf(stderr, "SDL_Init() failed: %s\n", SDL_GetError()); 32 32 exit(1);
Note:
See TracChangeset
for help on using the changeset viewer.