More conversion to debug channels

svn-id: r12293
This commit is contained in:
James Brown 2004-01-10 11:01:47 +00:00
parent 158acbb70c
commit c4528ac022
8 changed files with 54 additions and 41 deletions

View file

@ -47,7 +47,9 @@ void CDECL debugC(int channel, const char *s, ...) {
#endif
va_list va;
if (!(g_scumm->_debugFlags & channel))
// FIXME: Still spew all debug at -d9, for crashes in startup etc.
// Add setting from commandline ( / abstract channel interface)
if (!(g_scumm->_debugFlags & channel) && (g_debugLevel < 9))
return;
va_start(va, s);