+ return 0;
+ }
+ }
+
+ if( num_strings )
+ {
+ vmf_map *map = vmf_init( strings[0], 1 );
+
+ if( map )
+ {
+ // Path handling
+ if( !output_set )
+ {
+ strcpy( output_path, strings[0] );
+ csr_stripext( output_path );
+ }
+
+ char *base_name;
+ if( !(base_name = csr_findext( output_path, '/' ) ))
+ {
+ base_name = output_path;
+ }
+
+ strcpy( vmf_name, base_name );
+
+ printf( "output_path: '%s'\nvmf_name: '%s'\n", output_path, vmf_name );
+
+
+ // Main
+
+ csr_target target;
+
+ csr_create_target( &target, resolution, resolution );
+ csr_rt_clear( &target );
+
+ // Compute bounds
+ csr_filter filter =
+ {
+ .classname = NULL,
+ .visgroup = NULL,
+ .compute_bounds_only = 1
+ };
+ draw_vmf_group( &target, map, map->root, &filter, NULL, NULL );
+ csr_auto_fit( &target, padding );
+ filter.compute_bounds_only = 0;