- moved loadshared() to the right point
[supertux.git] / src / supertux.cpp
index 5d90b61..79638a0 100644 (file)
 */
 
 #include "supertux.h"
-
-
-/* --- MAIN --- */
+#include "resources.h"
 
 int main(int argc, char * argv[])
 {
-  int done;
+  bool done;
   
   st_directory_setup();
   parseargs(argc, argv);
@@ -27,6 +25,7 @@ int main(int argc, char * argv[])
   st_joystick_setup();
   st_general_setup();
   st_menu();
+  loadshared();
 
   if (launch_worldmap_mode)
     {
@@ -39,8 +38,7 @@ int main(int argc, char * argv[])
     }
   else
     {  
-      done = 0;
-  
+      done = false;
       while (!done)
         {
           done = title();
@@ -50,7 +48,8 @@ int main(int argc, char * argv[])
   clearscreen(0, 0, 0);
   updatescreen();
 
+  unloadshared();
   st_shutdown();
   
-  return(0);
+  return 0;
 }