]> git.mxchange.org Git - flightgear.git/commit
Cleanup exit handling.
authorJames Turner <zakalawe@mac.com>
Tue, 15 Oct 2013 21:16:50 +0000 (22:16 +0100)
committerJames Turner <zakalawe@mac.com>
Tue, 15 Oct 2013 21:16:50 +0000 (22:16 +0100)
commit386d87e098f37a2785b854c0c8b523737e5cab43
tree44cf6cd529431572d617459931d64989e4ba815b
parent78f2f2f14218bbc18957f71456a62e44c0233605
Cleanup exit handling.

Replace many lingering calls to exit() from the code,
replacing most with exception throws, which can be
caught by the existing mechanisms.

Update the option-parsing code to return an explicit
value indicating what to do (e.g., exit status to return
to the shell).
13 files changed:
src/Airports/apt_loader.cxx
src/Airports/runwayprefs.cxx
src/Airports/sidstar.cxx
src/Main/fg_init.cxx
src/Main/fg_init.hxx
src/Main/main.cxx
src/Main/options.cxx
src/Main/options.hxx
src/Navaids/fixlist.cxx
src/Sound/voiceplayer.cxx
src/Systems/electrical.cxx
src/Traffic/TrafficMgr.cxx
src/Viewer/fgviewer.cxx