[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Adonthell-devel] Configuration file support

From: ksterker
Subject: Re: [Adonthell-devel] Configuration file support
Date: Mon, 26 Apr 2004 10:53:13 +0200

Von: Alexandre Courbot <address@hidden>

> One problem with it: someone could easily change range of the 
> volume to disturb the program. 

Not really. Of course, the range could be changed, and the GUI would therefore 
allow to enter invalid values. However, neither configuration GUI nor the 
configuration 'manager' should bother with that. It wouldn't be their task to 
do any error checking, otherwise they wouldn't be generic enough.

The audio code itself needs to check the values it reads from the configuration 
manger. (I mean, the audio code is the only sensible place, where to check 
audio configuration settings; no other module should have to know anything 
about the audio system). So it can easily detect an invalid value and either 
stop the program or fallback to a sane default.

So even if people manipulate their config file, it won't do much harm to the 
program. They could fool the configuration GUI (which is stupid by design), but 
nothing else.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]