X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=skaterift.c;h=00fb7d5656a4f31e9d0a6df390ecfaa2573a855d;hb=237b1d672a077702267b4ceedd0479bdc62ccedc;hp=e488f778f0cfa63e613b36bd39ee850a1e8b08e5;hpb=38514b4ba03412ad51df02dc2ba345e1be41005d;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/skaterift.c b/skaterift.c index e488f77..00fb7d5 100644 --- a/skaterift.c +++ b/skaterift.c @@ -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",