- moved loadshared() to the right point
[supertux.git] / src / supertux.cpp
index 73991fe..79638a0 100644 (file)
@@ -11,9 +11,7 @@
 */
 
 #include "supertux.h"
-
-
-/* --- MAIN --- */
+#include "resources.h"
 
 int main(int argc, char * argv[])
 {
@@ -27,6 +25,7 @@ int main(int argc, char * argv[])
   st_joystick_setup();
   st_general_setup();
   st_menu();
+  loadshared();
 
   if (launch_worldmap_mode)
     {
@@ -49,6 +48,7 @@ int main(int argc, char * argv[])
   clearscreen(0, 0, 0);
   updatescreen();
 
+  unloadshared();
   st_shutdown();
   
   return 0;