sonic2kk / steamtinkerlaunch

Linux wrapper tool for use with the Steam client for custom launch options and 3rd party programs
GNU General Public License v3.0
2.05k stars 70 forks source link

Commandline: Flatten getGameExe checks #1031

Closed sonic2kk closed 5 months ago

sonic2kk commented 5 months ago

More recent codebase additions have been using the (in my opinion, more readable) return-early paradigm. This flattens the checks instead of containing everything in a big else block. This was recently done for getTitleFromID in #1011.

In testing, this seems to work just as well, but I will do more testing before merging.

sonic2kk commented 5 months ago

Bumped version with a rebase, works in testing. ShellCheck is green. This should be ready to merge.