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


_______________________________________________
Enigma-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/enigma-devel

Reply via email to