gameserver monitor initial work
[carveJwlIkooP6JGAAIwe30JlM.git] / skaterift.c
index 983ca9ba99c5fddc1b7d112fa7d36b5053ecf259..2e6fca696a9191b32cc022a78b96dfc2eca6df32 100644 (file)
@@ -14,6 +14,7 @@
 #if 1
 
 #define SR_NETWORKED
+#define SR_USE_LOCALHOST
 
 #ifndef VG_RELEASE
  #define VG_DEVWINDOW
@@ -51,6 +52,7 @@
 #include "highscores.c"
 #include "save.c"
 #include "respawn.c"
+#include "network.c"
 
 static struct player_avatar localplayer_avatar;
 
@@ -61,7 +63,11 @@ int main( int argc, char *argv[] ){
    return 0;
 }
 
-VG_STATIC void vg_launch_opt(void){}
+VG_STATIC void vg_launch_opt(void){
+   if( vg_long_opt( "noauth" ) ){
+      network_client.auth_mode = eServerModeNoAuthentication;
+   }
+}
 
 VG_STATIC void vg_preload(void){
    //skaterift_read_savedata();