X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux.cpp;h=06cbbe73302928ddeb0ad267c8f074e0c2461b8d;hb=abf179b33deb4040bb583e29207eaf1dd2ee0780;hp=6470a42104437b6e479191a2e1b80d42b1d8193d;hpb=a5862668b88a59063765ed7717a850dc7a531f0e;p=supertux.git diff --git a/src/supertux.cpp b/src/supertux.cpp index 6470a4210..06cbbe733 100644 --- a/src/supertux.cpp +++ b/src/supertux.cpp @@ -25,11 +25,8 @@ #include #include -#include "utils/exceptions.h" -#include "defines.h" #include "app/globals.h" #include "app/setup.h" -#include "intro.h" #include "title.h" #include "gameloop.h" #include "leveleditor.h" @@ -39,7 +36,6 @@ #include "video/surface.h" #include "tile_manager.h" #include "app/gettext.h" -#include "player.h" #include "misc.h" #include "utils/configfile.h" @@ -49,18 +45,9 @@ int main(int argc, char * argv[]) try { #endif config = new MyConfig; + + Setup::init(PACKAGE_NAME, PACKAGE_NAME, PACKAGE_VERSION); - // we want translations only on messages - setlocale(LC_ALL, "C"); - setlocale(LC_MESSAGES, ""); - - (void) bindtextdomain(PACKAGE, LOCALEDIR); - (void) textdomain(PACKAGE); - (void) bind_textdomain_codeset(PACKAGE, "ISO-8859-1"); - - Setup::info(PACKAGE_NAME, PACKAGE, PACKAGE_VERSION); - - Setup::directories(); Setup::parseargs(argc, argv); Setup::audio(); @@ -104,14 +91,11 @@ int main(int argc, char * argv[]) unloadshared(); Setup::general_free(); st_menu_free(); - TileManager::destroy_instance(); #ifdef DEBUG Surface::debug_check(); #endif Termination::shutdown(); #ifndef DEBUG // we want to see the backtrace in gdb when in debug mode - } catch (SuperTuxException &e) { - std::cerr << "Unhandled SuperTux exception:\n " << e.what_file() << ":" << e.what_line() << ": " << e.what() << std::endl; } catch (std::exception &e) { std:: cerr << "Unhandled exception: " << e.what() << std::endl; }