mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 115 forks source link

Fix exit codes for some command-line options #714

Closed mbarnes closed 2 years ago

mbarnes commented 2 years ago

These command-line options have inverted exit codes:

The C++ bool returned by fe_settings.build_romlist() is passed directly to exit(), which results in an exit code of (1) on success and (0) on failure.

This makes using these commands in a script (or in my case an Ansible playbook) more difficult than necessary.

mickelson commented 2 years ago

thanks!