unify WriteBSPFile() print
This commit is contained in:
parent
a3d438c4be
commit
34038fd7fd
|
|
@ -227,6 +227,7 @@ void WriteBSPFile( const char *filename ){
|
|||
char tempname[ 1024 ];
|
||||
time_t tm;
|
||||
|
||||
Sys_Printf( "Writing %s\n", filename );
|
||||
|
||||
/* dummy check */
|
||||
if ( g_game == NULL || g_game->write == NULL ) {
|
||||
|
|
|
|||
|
|
@ -545,7 +545,6 @@ int ScaleBSPMain( Args& args ){
|
|||
/* write the bsp */
|
||||
UnparseEntities();
|
||||
path_set_extension( source, "_s.bsp" );
|
||||
Sys_Printf( "Writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
|
||||
/* return to sender */
|
||||
|
|
@ -649,7 +648,6 @@ int ShiftBSPMain( Args& args ){
|
|||
/* write the bsp */
|
||||
UnparseEntities();
|
||||
path_set_extension( source, "_sh.bsp" );
|
||||
Sys_Printf( "Writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
|
||||
/* return to sender */
|
||||
|
|
@ -934,7 +932,6 @@ int MergeBSPMain( Args& args ){
|
|||
/* write the bsp */
|
||||
UnparseEntities();
|
||||
path_set_extension( source, "_merged.bsp" );
|
||||
Sys_Printf( "Writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
|
||||
/* return to sender */
|
||||
|
|
@ -1148,7 +1145,6 @@ int ConvertBSPMain( Args& args ){
|
|||
|
||||
/* write bsp */
|
||||
path_set_extension( source, "_c.bsp" );
|
||||
Sys_Printf( "Writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
|
||||
/* return to sender */
|
||||
|
|
|
|||
|
|
@ -661,7 +661,6 @@ int ConvertJsonMain( Args& args ){
|
|||
read_json( StringStream( PathExtensionless( source ), '/' ), useFlagNames, skipUnknownFlags );
|
||||
UnparseEntities();
|
||||
path_set_extension( source, "_json.bsp" );
|
||||
Sys_Printf( "Writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1920,7 +1920,6 @@ static void LightWorld( bool fastAllocate, bool bounceStore ){
|
|||
StoreSurfaceLightmaps( fastAllocate, bounceStore );
|
||||
if( bounceStore ){
|
||||
UnparseEntities();
|
||||
Sys_Printf( "Writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
}
|
||||
|
||||
|
|
@ -2840,7 +2839,6 @@ int LightMain( Args& args ){
|
|||
|
||||
/* write out the bsp */
|
||||
UnparseEntities();
|
||||
Sys_Printf( "Writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
|
||||
/* ydnar: export lightmaps */
|
||||
|
|
|
|||
|
|
@ -251,7 +251,6 @@ int ImportLightmapsMain( Args& args ){
|
|||
}
|
||||
|
||||
/* write the bsp */
|
||||
Sys_Printf( "writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
|
||||
/* return to sender */
|
||||
|
|
|
|||
|
|
@ -970,7 +970,6 @@ int VisMain( Args& args ){
|
|||
}
|
||||
|
||||
/* write the bsp file */
|
||||
Sys_Printf( "Writing %s\n", source );
|
||||
WriteBSPFile( source );
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -354,9 +354,7 @@ void EndBSPFile( bool do_write ){
|
|||
WriteSurfaceExtraFile( source );
|
||||
|
||||
/* write the bsp */
|
||||
const auto path = StringStream( source, ".bsp" );
|
||||
Sys_Printf( "Writing %s\n", path.c_str() );
|
||||
WriteBSPFile( path );
|
||||
WriteBSPFile( StringStream( source, ".bsp" ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user