#include <exception>
#include "utils/exceptions.h"
-#include "app/defines.h"
+#include "defines.h"
#include "app/globals.h"
#include "app/setup.h"
#include "intro.h"
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
bind_textdomain_codeset(PACKAGE, "ISO-8859-1");
-
- st_directory_setup();
- parseargs(argc, argv);
+
+ Setup::info(PACKAGE_NAME,PACKAGE,PACKAGE_VERSION);
+
+ Setup::directories();
+ Setup::parseargs(argc, argv);
- st_audio_setup();
- st_video_setup();
- st_joystick_setup();
- st_general_setup();
+ Setup::audio();
+ Setup::video(SCREEN_W,SCREEN_H);
+ Setup::joystick();
+ Setup::general();
st_menu();
loadshared();
//SDL_Flip(screen);
unloadshared();
- st_general_free();
+ Setup::general_free();
st_menu_free();
TileManager::destroy_instance();
#ifdef DEBUG
Surface::debug_check();
#endif
- st_shutdown();
+ Termination::shutdown();
#ifndef DEBUG // we want to see the backtrace in gdb when in debug mode
}
catch (SuperTuxException &e)