mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Tweak some developer cvar usage.
This commit is contained in:
parent
9900aa3d02
commit
185e21e4e4
5 changed files with 14 additions and 15 deletions
|
@ -433,15 +433,13 @@ flac_get_info (flacfile_t *ff)
|
|||
info.dataofs = 0;
|
||||
info.datalen = samples * info.channels * sizeof (float);
|
||||
|
||||
if (developer->int_val) {
|
||||
Sys_Printf ("\nBitstream is %d channel, %dHz\n",
|
||||
Sys_MaskPrintf (SYS_DEV, "\nBitstream is %d channel, %dHz\n",
|
||||
info.channels, info.rate);
|
||||
Sys_Printf ("\nDecoded length: %d samples (%d bytes)\n",
|
||||
Sys_MaskPrintf (SYS_DEV, "\nDecoded length: %d samples (%d bytes)\n",
|
||||
info.frames, info.width);
|
||||
if (vc) {
|
||||
Sys_Printf ("Encoded by: %.*s\n\n",
|
||||
if (vc) {
|
||||
Sys_MaskPrintf (SYS_DEV, "Encoded by: %.*s\n\n",
|
||||
vc->vendor_string.length, vc->vendor_string.entry);
|
||||
}
|
||||
}
|
||||
|
||||
return info;
|
||||
|
|
|
@ -120,13 +120,12 @@ vorbis_get_info (OggVorbis_File *vf)
|
|||
info.dataofs = 0;
|
||||
info.datalen = samples * info.channels * info.width;
|
||||
|
||||
if (developer->int_val) {
|
||||
Sys_Printf ("\nBitstream is %d channel, %dHz\n",
|
||||
Sys_MaskPrintf (SYS_DEV, "\nBitstream is %d channel, %dHz\n",
|
||||
info.channels, info.rate);
|
||||
Sys_Printf ("\nDecoded length: %d samples (%d bytes)\n",
|
||||
Sys_MaskPrintf (SYS_DEV, "\nDecoded length: %d samples (%d bytes)\n",
|
||||
info.frames, info.width);
|
||||
Sys_Printf ("Encoded by: %s\n\n", ov_comment (vf, -1)->vendor);
|
||||
}
|
||||
Sys_MaskPrintf (SYS_DEV, "Encoded by: %s\n\n",
|
||||
ov_comment (vf, -1)->vendor);
|
||||
|
||||
return info;
|
||||
}
|
||||
|
|
|
@ -74,7 +74,8 @@ GIB_Exec_Override_f (void)
|
|||
return;
|
||||
}
|
||||
if (!Cvar_Command ()
|
||||
&& (cmd_warncmd->int_val || (developer && developer->int_val)))
|
||||
&& (cmd_warncmd->int_val
|
||||
|| (developer && developer->int_val & SYS_DEV)))
|
||||
Sys_Printf ("execing %s\n", Cmd_Argv (1));
|
||||
if ((strlen (Cmd_Argv (1)) >= 4
|
||||
&& !strcmp (Cmd_Argv (1) + strlen (Cmd_Argv (1)) - 4, ".gib"))
|
||||
|
|
|
@ -131,7 +131,7 @@ Cmd_Command (cbuf_args_t *args)
|
|||
return 0;
|
||||
if (cbuf_active->strict)
|
||||
return -1;
|
||||
else if (cmd_warncmd->int_val || developer->int_val)
|
||||
else if (cmd_warncmd->int_val || developer->int_val & SYS_DEV)
|
||||
Sys_Printf ("Unknown command \"%s\"\n", Cmd_Argv (0));
|
||||
return 0;
|
||||
}
|
||||
|
@ -499,7 +499,8 @@ Cmd_Exec_f (void)
|
|||
return;
|
||||
}
|
||||
if (!Cvar_Command ()
|
||||
&& (cmd_warncmd->int_val || (developer && developer->int_val)))
|
||||
&& (cmd_warncmd->int_val
|
||||
|| (developer && developer->int_val & SYS_DEV)))
|
||||
Sys_Printf ("execing %s\n", Cmd_Argv (1));
|
||||
Cbuf_InsertText (cbuf_active, f);
|
||||
Hunk_FreeToLowMark (mark);
|
||||
|
|
|
@ -155,7 +155,7 @@ Z_Malloc (memzone_t *zone, int size)
|
|||
{
|
||||
void *buf;
|
||||
|
||||
if (!developer || developer->int_val)
|
||||
if (!developer || developer->int_val & SYS_DEV)
|
||||
Z_CheckHeap (zone); // DEBUG
|
||||
buf = Z_TagMalloc (zone, size, 1);
|
||||
if (!buf)
|
||||
|
|
Loading…
Reference in a new issue