Added info to launch options
authorhgn <hgodden00@gmail.com>
Thu, 12 Dec 2024 16:34:29 +0000 (16:34 +0000)
committerhgn <hgodden00@gmail.com>
Thu, 12 Dec 2024 16:34:29 +0000 (16:34 +0000)
build.c
src/client.c
src/skaterift.c
src/steam.c

diff --git a/build.c b/build.c
index dea267cbdba7dcbcabccd1202084cba79a118eec..d350fe8ab5a0fa27f5c6d46878bc508e75d5b7d8 100644 (file)
--- a/build.c
+++ b/build.c
@@ -318,19 +318,19 @@ int main( int argc, char *argv[] )
 {
    char *arg;
    while( vg_argp( argc, argv ) ){
-      if( vg_long_opt( "release-all" ) )
+      if( vg_long_opt( "release-all", NULL ) )
          s_release_all();
 
-      if( vg_long_opt( "testing-build" ) )
+      if( vg_long_opt( "testing-build", NULL ) )
          s_testing_build();
 
-      if( vg_long_opt( "testing-server" ) )
+      if( vg_long_opt( "testing-server", NULL ) )
          s_testing_server();
 
-      if( vg_long_opt( "tools" ) )
+      if( vg_long_opt( "tools", NULL ) )
          s_compile_tools();
 
-      if( vg_opt('r') )
+      if( vg_opt('r', NULL) )
          vg_test_env.optimization = 3;
    }
 
index f5351325bce5dd87b4c4e0df5597ca788c40867d..6b2b1192163ac65643c279ee8faf815d74f44e62 100644 (file)
@@ -68,16 +68,16 @@ void vg_launch_opt(void)
 {
    const char *arg;
 
-   if( vg_long_opt( "noauth" ) )
+   if( vg_long_opt( "noauth", "Disable server authentication" ) )
       network_client.auth_mode = eServerModeNoAuthentication;
 
-   if( (arg = vg_long_opt_arg( "server" )) )
+   if( (arg = vg_long_opt_arg( "server", "Specify server address" )) )
       network_set_host( arg, NULL );
 
-   if( vg_long_opt( "demo" ) )
+   if( vg_long_opt( "demo", "Turn demo mode on" ) )
       g_client.demo_mode = 1;
 
-   if( vg_long_opt( "nosteam" ) )
+   if( vg_long_opt( "nosteam", "Disable steam integration (offline)" ) )
       g_client.nosteam = 1;
 
    game_launch_opt();
index b84c41f0d10afcd4b671fb6ee907e6e3a21676f4..cc1e89b59b2dd3dc1dcd930f9d48fa722f874232 100644 (file)
@@ -61,7 +61,7 @@ struct skaterift_globals skaterift =
 void game_launch_opt(void)
 {
    const char *arg;
-   if( (arg = vg_long_opt_arg( "world" )) )
+   if( (arg = vg_long_opt_arg( "world", "Specify path to world to load" )) )
       skaterift.hub_world = arg;
 }
 
index f28b8e786718733e6bcd1bb477998a67ad6258ee..6eb2d05a1f2c0f82710e5fba069f687f70bb6665 100644 (file)
@@ -242,7 +242,8 @@ int steam_init(void)
 
    vg_info( "Initializing steamworks\n" );
 
-   if( !SteamAPI_Init() ){
+   if( !SteamAPI_Init() )
+   {
       printf("\n");
       vg_error( "Steamworks failed to initialize\n" );
       return 1;