X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsupertux.cpp;h=0e9c7ce1aab1b9b0fa334207c10a7fb5776c5496;hb=63d73bc2cd3c356ffcf25af79256fbf2af1dd07c;hp=b4da51170bb8d52a1b3cd64f713fd91fc13a107c;hpb=e3d8e801e0cc2d176d88c0a56a424dfad03277ca;p=supertux.git diff --git a/src/supertux.cpp b/src/supertux.cpp index b4da51170..0e9c7ce1a 100644 --- a/src/supertux.cpp +++ b/src/supertux.cpp @@ -10,13 +10,23 @@ April 11, 2000 - March 15, 2004 */ -#include "supertux.h" + +#include +#include + +#include "defines.h" +#include "globals.h" +#include "setup.h" +#include "intro.h" +#include "title.h" +#include "gameloop.h" +#include "leveleditor.h" +#include "screen.h" +#include "worldmap.h" #include "resources.h" int main(int argc, char * argv[]) { - bool done; - st_directory_setup(); parseargs(argc, argv); @@ -25,10 +35,12 @@ int main(int argc, char * argv[]) st_joystick_setup(); st_general_setup(); st_menu(); + loadshared(); if (launch_worldmap_mode) { - worldmap_run(); + WorldMapNS::WorldMap worldmap; + worldmap.display(); } else if (level_startup_file) { @@ -37,18 +49,13 @@ int main(int argc, char * argv[]) } else { - done = false; - while (!done) - { - loadshared(); - done = title(); - unloadshared(); - } + title(); } clearscreen(0, 0, 0); updatescreen(); + unloadshared(); st_shutdown(); return 0;