engine: allow specifying screenshot filenames in command directly
This commit is contained in:
parent
c6c4178dd2
commit
2900ee1cde
1 changed files with 7 additions and 0 deletions
|
@ -274,6 +274,13 @@ void CL_GenericShot_f( void )
|
||||||
string checkname;
|
string checkname;
|
||||||
int i;
|
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 )
|
if( type == scrshot_snapshot )
|
||||||
{
|
{
|
||||||
fmt = "../%s_%04d.png";
|
fmt = "../%s_%04d.png";
|
||||||
|
|
Loading…
Add table
Reference in a new issue