enigma-devel
[Top][All Lists]
Advanced

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

Re: [Enigma-devel] Re: Mac OS X fixes for 1.01


From: Sidney Markowitz
Subject: Re: [Enigma-devel] Re: Mac OS X fixes for 1.01
Date: Fri, 25 May 2007 07:37:26 +1200
User-agent: Thunderbird 2.0.0.0 (Macintosh/20070326)

I see a problem with the program logic.

If you start on a fresh machine, the default path is ~/.enigma before
anything else is done. Then you have to initialize preferences in order
to get the SDL stuff started before you call updateMac1_00() because
that might open up a dialog. As soon as you initialize the preferences
that early, you will create a default ~/.enigma directory.

That means that updateMac1_00 has to do the following:

 if this is the first time, then without asking set the paths to the
library directory and move ~/.enigma there

 if there is a version 1.00 configuration, ask and possibly move ~/.enigma.

What that indicates to me is that you should hve a local flag variable
in updateMac1_00 so that you can have some if statements, maybe call the
dialog, and after those if statements check the flag and maybe move the
directory.

I'll put together a patch now to show what I mean.

 -- sidney




reply via email to

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