[TuxKart-devel] [patch] Command line arguments
Status: Alpha
Brought to you by:
sjbaker
From: Pascal G. <pa...@gu...> - 2004-07-12 07:35:36
|
Hi there guys, i've been looking at the progress in the Wiki and notice an easy task i could partially handle. I've modified start_tuxkart.cxx in order to support some arguments. Apply the patch, compile and run "./tuxkart --help" ;) Seriously the supported options are: --track n Start at track number n. First track is 0. --nbrLaps n Define number of laps to n. --reverse Enable reverse mode. --mirror Enable mirror mode. I don't have any C++ skills, my patch is most probably ugly. Anyway, i hope this helps. On a side note, i took the freedom to split the main() in different functions, the main() was too big for me. Comments and suggestions are very welcomed! Regards, -Pascal -- Projet MoviXMaker (http://sv.gnu.org/projects/movixmaker) Projet [e]MoviX[2] (http://movix.sf.net) Debian Project (http://www.debian.org) |