- if( length == 0 )
- {
- strncpy( buf, "User", length );
- return;
- }
-
- u8 *ustr = (u8 *)str;
- u32 utf32_code = 0x00000000;
- u32 i=0, j=0, utf32_byte_ct=0;
-
- for(;i < length-1;)
- {
- if( ustr[i] == 0x00 )
- break;
-
- if( ustr[i] & 0x80 )
- {
- if( utf32_byte_ct )
- {
- utf32_byte_ct --;
- utf32_code |= (ustr[i] & 0x3F) << (utf32_byte_ct*6);
-
- if( !utf32_byte_ct )
- {
- const char *match;
- size_t chars = anyascii( utf32_code, &match );
-
- for( u32 k=0; k<VG_MIN(chars, length-1-j); k++ )
- {
- buf[ j++ ] = (u8)match[k];
- }
- }
- }
- else
- {
- utf32_byte_ct = utf8_byte0_byte_count( ustr[i] )-1;
- utf32_code = ustr[i] & (0x3F >> utf32_byte_ct);
- utf32_code <<= utf32_byte_ct*6;
- }
- }
- else
- {
- utf32_byte_ct = 0x00;
- buf[j ++] = str[i];
- }
-
- i++;
- }
-
- buf[j] = 0x00;
+ VG_VAR_F32( k_day_length );
+
+ VG_VAR_F32( k_cam_punch );
+ VG_VAR_F32( k_cam_damp );
+ VG_VAR_F32( k_cam_spring );
+
+ VG_VAR_F32( k_grind_dampener );
+ VG_VAR_F32( k_grind_spring );
+ VG_VAR_F32( k_grind_aligment );
+ VG_VAR_F32( k_surface_spring );
+ VG_VAR_F32( k_surface_dampener );
+ VG_VAR_F32( k_board_interia );
+ VG_VAR_F32( k_grind_decayxy );
+ VG_VAR_F32( k_grind_axel_min_vel );
+ VG_VAR_F32( k_grind_axel_max_angle );
+ VG_VAR_F32( k_grind_max_friction );
+
+ VG_VAR_F32( k_walkspeed );
+ VG_VAR_F32( k_stopspeed );
+ VG_VAR_F32( k_airspeed );
+ VG_VAR_F32( k_walk_friction );
+ VG_VAR_F32( k_walk_air_accel );
+ VG_VAR_F32( k_walk_accel );
+
+ VG_VAR_I32( freecam );
+ VG_VAR_F32_PERSISTENT( debug_logic_bricks );
+ VG_VAR_I32( cl_thirdperson );
+ VG_VAR_F32_PERSISTENT( fc_speed );
+
+ VG_VAR_F32( k_ragdoll_limit_scale );
+ VG_VAR_I32( k_ragdoll_div );
+ VG_VAR_I32( k_ragdoll_debug_collider );
+ VG_VAR_I32( k_ragdoll_debug_constraints );
+ VG_VAR_I32( k_debug_light_indices );
+ VG_VAR_I32( k_debug_light_complexity );
+ VG_VAR_I32( k_light_preview );
+
+ VG_VAR_F32( k_friction_lat );
+
+ VG_VAR_F32( k_cog_spring );
+ VG_VAR_F32( k_cog_damp );
+ VG_VAR_F32( k_cog_mass_ratio );
+
+ VG_VAR_F32( k_spring_force );
+ VG_VAR_F32( k_spring_dampener );
+ VG_VAR_F32( k_spring_angular );
+
+ VG_VAR_F32( k_mmthrow_scale );
+ VG_VAR_F32( k_mmcollect_lat );
+ VG_VAR_F32( k_mmcollect_vert );
+ VG_VAR_F32( k_mmdecay );