launch option to load world
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift.c
index e488f778f0cfa63e613b36bd39ee850a1e8b08e5..00fb7d5656a4f31e9d0a6df390ecfaa2573a855d 100644 (file)
@@ -85,6 +85,10 @@ static void vg_launch_opt(void){
    if( vg_long_opt( "demo" ) ){
       skaterift.demo_mode = 1;
    }
+
+   if( (arg = vg_long_opt_arg( "world" )) ){
+      skaterift.hub_world = arg;
+   }
 }
 
 static void vg_preload(void){
@@ -166,7 +170,7 @@ static addon_reg *skaterift_mount_world_unloadable( const char *path, u32 ext ){
 
 static void skaterift_load_world_content(void){
    /* hub world */
-   addon_reg *hub = skaterift_mount_world_unloadable( "maps/dev_hub", 0 );
+   addon_reg *hub = skaterift_mount_world_unloadable( skaterift.hub_world, 0 );
    skaterift_mount_world_unloadable( "maps/mp_spawn", 
          ADDON_REG_CITY|ADDON_REG_PREMIUM );
    skaterift_mount_world_unloadable( "maps/mp_mtzero",