Ticket #124 (closed defect: fixed)
Command line argument --help should not initialize video
| Reported by: | chris | Owned by: | |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | Source | Version: | |
| Keywords: | Cc: |
Description
Video and audio is initialized even on command line options like --help and --version, which is unexpected behavior that doesn't match other programs, e.g. X.org programs won't initialize their X components if the switch is --version.
Change History
Note: See
TracTickets for help on using
tickets.
I split the Init_Singletons into two functions Main_Load_Settings (load the .xml files) and Main_Init_Singletons (Initialize the game singletons). The Settings are loaded before the command line arguments (since the command line arguments will override the options) and the Singletons are initialized only after the arguments are passed.