Hi,

> I need to investigae the synergy of the main.c and config.c files.
> Basically, I'm not sure how much intelligence is in main.c -- but I'll
> worry about that once I have lexx parsing my new config file stuffs.

config.l parses the config file and writes the result into a set of
configuration structs. It also includes defaults for the values in these
structs.

main.c parses the command line parameters and copies values determined by
config.l to the places they're needed at. Afterwards, it initializes
the vm, graphics, sound (sort of), and proceeds to run <game>::play in the
vm, where <game> is the name of the game script. When the VM returns,
graphics are uninitialized and memory is unallocated.

llap,
 Christoph



Reply via email to