[Scummvm-devel] debuglevel in config file

Max Horn max at quendi.de
Fri Apr 22 13:36:27 CEST 2005


Hi folks,

I am toying with the thought of just completely removing support for 
setting a debug level in the config file.

There seems to be no good reason for this feature in the first place; 
we mostly do it because we can, I think. However, that causes some 
headache in the code when it tries to keep the global gDebugLevel in 
sync with the value stored in the config manager (we have to store it 
in a global due to speed reasons, otherwise using debug() extensively, 
as we currently do, would slow us down to a crawl).
In all the times I work on ScummVM, I have used debug levels a lot, but 
I always set them via the command line (-d), never ever did I set it 
via the config file, nor did I ever have any desire for it. I tried 
hard and can't think of any scenario were being able to do that would 
have offered me any benefit...

So, if anybody has some realistic scenario (or even better, a real 
experience) were setting the debuglevel via the config file 
is/was/would be useful, please tell me. Otherwise, I'll just remove 
this (mis)feature ASAP.


Cheers,

Max





More information about the Scummvm-devel mailing list