From: David B. <db...@ta...> - 2006-08-15 22:41:45
|
Dear Yves, On Tuesday 15 August 2006 08:02, Yves Combe wrote: > To launch from gcompris, i'd appreciate a "--optionfile filename" > option, to make a temp file from gcompris to pass the options. I will certainly do that. Does it need to be able to find files in all locations (i.e. absolute pathnames)? I have thought about this somewhat today. My current inclination is as follows: 1. The program starts with the hard-coded defaults, overridden as needed by the admin-level config file. It will either then proceed using these settings, or optionally accept a specified file. 2. If the "--optionfile filename" arg is supplied, it will look for a matching filename. I have created a "missions" directory under the program's data dir that will contain a series of prepared "missions" (i.e. lessons). Tuxmath will definitely look here and probably some other places for "filename". The config file now has a place for the name of the next lesson file, supporting a sort of linked-list arrangement. 3. If "--optionfile filename" is not used, by default the game will look for the options file in the user's $HOME, basically keeping the same settings from the previous game unless the file has been edited. 4. The program saves the user's settings at exit, so if the student is working on a particular "mission", the program will return to it the next time. Does this all sound reasonable? I should be able to get something like this into svn fairly soon. -- David Bruce |