2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-04 17:42:22 +01:00

engine: ref: fix spamming in console when getting human readable renderer names

This commit is contained in:
Alibek Omarov 2019-10-11 05:11:45 +03:00
parent 1e7abdc144
commit 6d8026cd81

View File

@ -508,13 +508,11 @@ static void R_GetRendererName( char *dest, size_t size, const char *opt )
Q_snprintf( dest, size, "%sref_%s.%s", Q_snprintf( dest, size, "%sref_%s.%s",
OS_LIB_PREFIX, opt, OS_LIB_EXT ); OS_LIB_PREFIX, opt, OS_LIB_EXT );
#endif #endif
Con_Printf( "Loading renderer by short name: %s\n", opt );
} }
else else
{ {
// full path // full path
Q_strcpy( dest, opt ); Q_strcpy( dest, opt );
Con_Printf( "Loading renderer: %s\n", opt );
} }
} }
@ -524,6 +522,8 @@ static qboolean R_LoadRenderer( const char *refopt )
R_GetRendererName( refdll, sizeof( refdll ), refopt ); R_GetRendererName( refdll, sizeof( refdll ), refopt );
Con_Printf( "Loading renderer: %s -> %s\n", refopt, refdll );
if( !R_LoadProgs( refdll )) if( !R_LoadProgs( refdll ))
{ {
R_Shutdown(); R_Shutdown();