Page 1 of 1

Specify config file from command line

Posted: 12.02.2005, 15:33
by Zarius
Hi all,

Wrote a small addition to Celestia to allow one to specify the config file to use from the command line (ie. with "celestia --configfile blah.cfg"). This can make the educational activities a little easier to load as one can simply create a shortcut (or script, under Linux) to Celestia that includes the command line to point to the educational extras config file.

If this is of interest to anyone the patch file for the source code is here. A pre-compiled exe is here - note however this is the latest CVS release and may have bugs (I've noticed the 'center' command isn't working as it should, seems to spin around before centering... but it still centers ok :)).

--
Zarius.

Posted: 13.02.2005, 02:29
by Brendan
Could I try adding this patch to BCelestia? Then the config file specification argument could be used with config files that have extra things BCelestia reads like which star flare texture to use.

Posted: 13.02.2005, 14:14
by Zarius
No worries, I'm happy for anyone who finds it useful to use it.
--
Zarius.