OpenFodder / openfodder

Open Fodder: An open source port of Cannon Fodder
http://openfodder.com
GNU General Public License v3.0
459 stars 42 forks source link

Which are the command line argument for OpenFodder? #24

Closed xcom169 closed 6 years ago

xcom169 commented 6 years ago

Which are the possible command line arguments for OpenFodder? OpenFodder --help gives me a 'Core Dump'. In which .cpp these arguments are handled?

Thanks!

segrax commented 6 years ago

The CLI support is pretty much non-existant, and the ones which are implemented, are done very poorly (hence why its crashing, its trying to access argument 2, which clearly wont exist if you just OpenFodder --help)

Just Here: https://github.com/OpenFodder/openfodder/blob/master/Source/stdafx.cpp#L40

commands are:

skipintro map

but, due to extreme lazyness, they must be used in exactly the right spots in the argument list.

Improvement is on our TODO :)

segrax commented 6 years ago

Done,

Have added a number of CLI options, you can view with --help

-h, --help Help -w, --window Start in window mode --skipintro Skip all game intros -c, --campaign "name" Campaign Name (default: ) -m, --mission 1 Mission Number (default: 0) -p, --phase 2 Phase Number (default: 0) --list-campaigns List available campaigns