X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux.cpp;h=c29d7f3b7ca9c122832469720245ddf21c964c33;hb=e68610f027ad6f35025d9aca87202ceb4501e97e;hp=3181f3204916ab3e604af986f2e71fccaf4e88cd;hpb=236df51d91f0845cd4e06b3269e262911d81f5db;p=supertux.git diff --git a/src/supertux.cpp b/src/supertux.cpp index 3181f3204..c29d7f3b7 100644 --- a/src/supertux.cpp +++ b/src/supertux.cpp @@ -24,7 +24,7 @@ #include #include "utils/exceptions.h" -#include "app/defines.h" +#include "defines.h" #include "app/globals.h" #include "app/setup.h" #include "intro.h" @@ -51,14 +51,16 @@ int main(int argc, char * argv[]) 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(); @@ -97,13 +99,13 @@ int main(int argc, char * argv[]) //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)