mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 14:32:55 +00:00
when using the condump command, do not say "dumped console text" prematurely, before trying to open the file
This commit is contained in:
parent
a8ce30163e
commit
1d0a044de3
1 changed files with 2 additions and 2 deletions
|
@ -191,8 +191,6 @@ void Con_Dump_f (void)
|
|||
Q_strncpyz( filename, Cmd_Argv( 1 ), sizeof( filename ) );
|
||||
COM_DefaultExtension( filename, sizeof( filename ), ".txt" );
|
||||
|
||||
Com_Printf ("Dumped console text to %s.\n", filename );
|
||||
|
||||
f = FS_FOpenFileWrite( filename );
|
||||
if (!f)
|
||||
{
|
||||
|
@ -200,6 +198,8 @@ void Con_Dump_f (void)
|
|||
return;
|
||||
}
|
||||
|
||||
Com_Printf ("Dumped console text to %s.\n", filename );
|
||||
|
||||
// skip empty lines
|
||||
for (l = con.current - con.totallines + 1 ; l <= con.current ; l++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue