[fpc-devel] GetAppConfigFile
Micha Nelissen
micha at neli.hopto.org
Sat Oct 4 12:23:08 CEST 2008
Hi,
Why is there a parameter to GetAppConfigFile? I'd suggest something like:
function GetAppConfigFile: string;
begin
{ first look for user specific config file }
Result := GetAppConfigFile(false);
if FileExists(Result) then
exit;
{ otherwise use global one }
Result := GetAppConfigFile(true);
end;
This would first look for the user version, then for the global variant.
(BTW: instead of Boolean, I would have liked a acLocal, acGlobal better,
it's clearer to read).
Any thoughts?
Micha
More information about the fpc-devel
mailing list