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
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel