X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux.cpp;h=81856f6e638e6778afad4a15a3e975ca94e42fe5;hb=b47938ec825a6bbf5ef8f49f0f893d2647a79c71;hp=2c60c0ec712242023a0a6aee3e7a2c658a5add1a;hpb=ac9e53e5d668d20fcae8c6ac728602d5359a6004;p=supertux.git diff --git a/src/supertux.cpp b/src/supertux.cpp index 2c60c0ec7..81856f6e6 100644 --- a/src/supertux.cpp +++ b/src/supertux.cpp @@ -25,7 +25,6 @@ #include #include -#include "utils/exceptions.h" #include "defines.h" #include "app/globals.h" #include "app/setup.h" @@ -39,7 +38,6 @@ #include "video/surface.h" #include "tile_manager.h" #include "app/gettext.h" -#include "player.h" #include "misc.h" #include "utils/configfile.h" @@ -50,7 +48,7 @@ int main(int argc, char * argv[]) #endif config = new MyConfig; - Setup::init(PACKAGE_NAME, PACKAGE, PACKAGE_VERSION); + Setup::init(PACKAGE_NAME, PACKAGE_NAME, PACKAGE_VERSION); Setup::parseargs(argc, argv); @@ -95,14 +93,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; }