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.1k stars 70 forks source link

Commandline: Add support for Non-Steam Games to getGameExe #969

Closed sonic2kk closed 9 months ago

sonic2kk commented 9 months ago

More work for #960.

This PR adds support for getting the Game EXE for Non-Steam Games. It returns in the same format, and can also search on game name. This also removes the need for the Non-Steam Game hack of setting the game EXE.

This shouldn't break Steam games either, all existing functionality should be untouched. This just adds support for Non-Steam Games, the same way #963 added support in gi and gt.

There is also a small refactor to those functions in this PR. We disable searching on shortcuts by default, to prevent any breakages when trying to search for unknown games names and erroneously falling back to shortcuts.vdf when we shouldn't. Searching on Non-Steam Games for these functions is only enabled when we're running from the commandline.

Side note: We don't write this out to the meta file, because the information in shortcuts.vdf is volatile, as the user can edit the game name or EXE at any time.


This PR is ready for merging after a version bump and some more testing.

sonic2kk commented 9 months ago

Tested it when troubleshooting another issue, it should be ready to merge.