X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=skaterift.c;h=c7e2d42f0e57e0632e03f023e55b58f27087959a;hb=47bdc07d1a3e268f7926b5849ea751b0ef63289b;hp=775637702f9e0d2cf428089c26aa44b5d13ad249;hpb=b7b22a6b33b7a7e6166b3de1fcabf71eb2aed287;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/skaterift.c b/skaterift.c index 7756377..c7e2d42 100644 --- a/skaterift.c +++ b/skaterift.c @@ -82,6 +82,10 @@ static void vg_launch_opt(void){ if( vg_long_opt( "tools" ) ){ k_tools_mode = 1; } + + if( vg_long_opt( "demo" ) ){ + skaterift.demo_mode = 1; + } } static void vg_preload(void){ @@ -156,9 +160,9 @@ static void skaterift_restore_state(void){ kvsav.cur = orig; } -static addon_reg *skaterift_mount_world_unloadable( const char *path ){ +static addon_reg *skaterift_mount_world_unloadable( const char *path, u32 ext ){ addon_reg *reg = addon_mount_local_addon( path, k_addon_type_world, ".mdl" ); - reg->flags |= ADDON_REG_HIDDEN; + reg->flags |= (ADDON_REG_HIDDEN | ext); return reg; } @@ -216,9 +220,12 @@ static void vg_load(void){ */ /* hub world */ - addon_reg *hub = skaterift_mount_world_unloadable( "maps/dev_hub" ); - skaterift_mount_world_unloadable( "maps/mp_spawn" ); - skaterift_mount_world_unloadable( "maps/mp_mtzero" ); + addon_reg *hub = skaterift_mount_world_unloadable( "maps/dev_hub", 0 ); + skaterift_mount_world_unloadable( "maps/mp_spawn", + ADDON_REG_CITY|ADDON_REG_PREMIUM ); + skaterift_mount_world_unloadable( "maps/mp_mtzero", + ADDON_REG_MTZERO|ADDON_REG_PREMIUM ); + skaterift_mount_world_unloadable( "maps/dev_tutorial", 0 ); /* load home/permanent world manually */ world_static.load_state = k_world_loader_load;