+ LevelEditor leveleditor;
+
+ if(level_startup_file)
+ leveleditor.run(level_startup_file);
+ else
+ leveleditor.run();
+ }
+ else if (launch_worldmap_mode && level_startup_file)
+ {
+ // hack to make it possible for someone to give an absolute path
+ std::string str(level_startup_file);
+ unsigned int i = str.find_last_of("/", str.size());
+ if(i != std::string::npos)
+ str.erase(0, i+1);
+
+ WorldMapNS::WorldMap worldmap;
+ worldmap.loadmap(str);
+ worldmap.display();