Specify config file from command line

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Zarius
Posts: 9
Joined: 02.01.2005
With us: 19 years 9 months
Location: Brisbane, Australia

Specify config file from command line

Post #1by Zarius » 12.02.2005, 15:33

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.

Brendan
Posts: 296
Joined: 15.07.2003
With us: 21 years 2 months
Location: Bellows Falls, VT
Contact:

Post #2by Brendan » 13.02.2005, 02:29

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.

Topic author
Zarius
Posts: 9
Joined: 02.01.2005
With us: 19 years 9 months
Location: Brisbane, Australia

Post #3by Zarius » 13.02.2005, 14:14

No worries, I'm happy for anyone who finds it useful to use it.
--
Zarius.


Return to “Development”