gba-trycatch

diff src/main_sdl.c @ 8:fb0a0d6a8b52

sortof works
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 19 Jun 2014 05:53:46 +0300
parents 73b5f2e5d18a
children b0ed38f13261
line diff
     1.1 --- a/src/main_sdl.c	Wed Jun 18 06:20:07 2014 +0300
     1.2 +++ b/src/main_sdl.c	Thu Jun 19 05:53:46 2014 +0300
     1.3 @@ -46,6 +46,11 @@
     1.4  
     1.5  	back_buffer = front_buffer = &bbuf;
     1.6  
     1.7 +	if(game_init() == -1) {
     1.8 +		SDL_Quit();
     1.9 +		return 1;
    1.10 +	}
    1.11 +
    1.12  	for(;;) {
    1.13  		SDL_Event ev;
    1.14  		uint16_t *dest, *src;