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

RE: [XaraXtreme-dev] Support file pathes

--On 01 July 2006 10:34 +0100 Phil Martin <Phil@xxxxxxxx> wrote:

We should have high-level functions such as GetUserStoragePath and
centralise all the differences between platforms within those functions,
to avoid having platform specific conditions throughout the code.

I agree with this, but...

And I would suggest that the different implementations of these functions
are switched on the identity of the target platform rather than specific
build settings. E.g:
wxString GetUserStoragePath()

... not with that. Every distro of every OS has the potential to
have different storage paths. Encoding them into the C is not going
to be helpful, either to distro maintainers, or to the poor people
having to read the code.

Luke's idea about having a "support" direectory (or whatever) and
subdirectories within it is sensible.