static struct player_avatar localplayer_avatar;
int main( int argc, char *argv[] ){
-#if 0
- u8 buf[ 512 ];
- bitpack_ctx ctx = {
- .buffer = buf,
- .buffer_len = 512,
- .bytes = 0,
- .mode = k_bitpack_compress
- };
-
- v4f q = { 0.388, -0.565, 0.515, 0.515 };
- vg_info( "q: %f %f %f %f\n", q[0], q[1], q[2], q[3] );
-
- /* compress */
- bitpack_qquat( &ctx, q );
-
- vg_info( "compressed bytes: %u\n", ctx.bytes );
-
- /* decompress */
- ctx.bytes = 0;
- ctx.mode = k_bitpack_decompress;
-
- bitpack_qquat( &ctx, q );
- vg_info( "q: %f %f %f %f\n", q[0], q[1], q[2], q[3] );
-
- return 0;
-#endif
-
vg_mem.use_libc_malloc = 0;
vg_set_mem_quota( 160*1024*1024 );
vg_enter( argc, argv, "Voyager Game Engine" );
}
static void vg_launch_opt(void){
+ const char *arg;
if( vg_long_opt( "noauth" ) ){
network_client.auth_mode = eServerModeNoAuthentication;
}
+
+ if( (arg = vg_long_opt_arg( "server" )) ){
+ vg_strncpy( arg, network_client.server_adress, 64,
+ k_strncpy_overflow_fatal );
+ }
}
static void vg_preload(void){