engine: allow specifying screenshot filenames in command directly

This commit is contained in:
Ivan Avdeev 2023-11-20 13:01:01 -05:00 committed by Alibek Omarov
parent c6c4178dd2
commit 2900ee1cde

View file

@ -274,6 +274,13 @@ void CL_GenericShot_f( void )
string checkname;
int i;
// allow overriding screenshot by users request
if( Cmd_Argc() > 1 )
{
Q_strncpy( cls.shotname, Cmd_Argv( 1 ), sizeof( cls.shotname ));
break;
}
if( type == scrshot_snapshot )
{
fmt = "../%s_%04d.png";