void quit () { if (isInit) { quitVideo (); quitAudio (); SDL_Quit (); isInit = false; } }
static VALUE RUDL_at_exit(VALUE obj) { DEBUG_S("Reached RUDL_at_exit"); #ifdef HAVE_SDL_NET_H quitNet(); #endif quitJoystick(); #ifdef HAVE_SDL_MIXER_H quitAudio(); #endif quitVideo(); quitTTF(); DEBUG_S("Quitting the rest of it"); SDL_Quit(); return Qnil; }