Ticket #124 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by knowknowledge

  • Status changed from new to closed
  • Resolution set to fixed

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.

Note: See TracTickets for help on using tickets.