33 |
#include "SDL.h" |
#include "SDL.h" |
34 |
|
|
35 |
#include <cstdio> |
#include <cstdio> |
36 |
|
#include <cstdlib> |
37 |
#include <fstream> |
#include <fstream> |
38 |
#include <iostream> |
#include <iostream> |
39 |
|
|
215 |
fprintf(stderr, "Couldn't init SDL: %s\n", SDL_GetError()); |
fprintf(stderr, "Couldn't init SDL: %s\n", SDL_GetError()); |
216 |
exit(1); |
exit(1); |
217 |
} |
} |
218 |
|
atexit(SDL_Quit); |
219 |
|
|
220 |
if (ap.nosound) |
if (ap.nosound) |
221 |
sound::DisableSound(); |
sound::DisableSound(); |
241 |
world::Shutdown(); |
world::Shutdown(); |
242 |
video::Shutdown(); |
video::Shutdown(); |
243 |
display::Shutdown(); |
display::Shutdown(); |
244 |
|
sound::Shutdown(); |
245 |
options::Save(); |
options::Save(); |
246 |
delete_sequence(enigma::LevelPacks.begin(), |
delete_sequence(enigma::LevelPacks.begin(), |
247 |
enigma::LevelPacks.end()); |
enigma::LevelPacks.end()); |