+ // Try commands
+ for( int i = 0; i < arrlen( vg_console.functions ); i ++ )
+ {
+ struct vg_cmd *cmd = &vg_console.functions[ i ];
+ if( !strcmp( cmd->name, args[0] ) )
+ {
+ // Call function
+ cmd->function( arg_count-1, args+1 );
+ return;
+ }
+ }
+
+ vg_error( "No command/variable named '%s'\n", args[0] );