diff -r 6171f0bad318 -r f7b49b2c5d84 project_files/frontlib/frontlib.c --- a/project_files/frontlib/frontlib.c Wed Jun 27 22:52:19 2012 +0200 +++ b/project_files/frontlib/frontlib.c Thu Jul 05 00:33:24 2012 +0200 @@ -19,27 +19,12 @@ #include "frontlib.h" #include "util/logging.h" -#include #include -static int flib_initflags; - int flib_init(int flags) { - flib_initflags = flags; - flib_log_d("Initializing frontlib"); - if(!(flib_initflags | FRONTLIB_SDL_ALREADY_INITIALIZED)) { - if(SDL_Init(0)==-1) { - flib_log_e("Error in SDL_Init: %s", SDL_GetError()); - return -1; - } - } - if(SDLNet_Init()==-1) { flib_log_e("Error in SDLNet_Init: %s", SDLNet_GetError()); - if(!(flib_initflags | FRONTLIB_SDL_ALREADY_INITIALIZED)) { - SDL_Quit(); - } return -1; } @@ -49,7 +34,4 @@ void flib_quit() { flib_log_d("Shutting down frontlib"); SDLNet_Quit(); - if(!(flib_initflags | FRONTLIB_SDL_ALREADY_INITIALIZED)) { - SDL_Quit(); - } }