[AD] al_parse_command_line()

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


i have made (and surely most of you made this al least once in your
live) a function that parses command line and sets some variables,
like the graphic mode, the resolution, to be used in the main when
setting the gfx mode.

i think that it could be modified a bit and added into Allegro
(if u don't like globals maybe it can return a struct or well use
you imagination, for me globals are ok in a func like this...)

there could also be added other things, as you like...

here is attached the function *as is* right now (so it uses my
format style :P ... etc) if u want to have an idea.

what do you think?
(ah yes the feature freeze... but i'd like to have an opinion
anyway... :)


"Our hardware runs better without windows"
                                        BMW advertisement

_.-:/°^^°\:-._.-:/°^^°\:-._          __.         ____
 - Lo'oRiS il Kabukimono -          / /|       /^___ \
Real Name: Lorenzo Petrone         / / /      / /L_/ /
e-mail: _lano_@xxxxxxxxxx          / / /      /  ___-°/
irc.azzurra.org #lano            / /_/__    /  /|__-°
digilander.iol.it/lano666       /______/|  /__/ /
^°\:-.__.-:/°^°\:-.__.-:/°^     |______|/  |__L/

Attachment: parse_command_line.c
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/