Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 'list' Command #728

Merged
merged 5 commits into from
Jan 28, 2023
Merged

Update 'list' Command #728

merged 5 commits into from
Jan 28, 2023

Conversation

sonic2kk
Copy link
Owner

Previously the list command only listed out a bunch of AppIDs, now in addition to listing the AppIDs it can also list the game name, game path, and all three.

This PR also does some minor updates to the getGameDir function. There is an internal change to allow only listing the path without listing the game name and AppID, an option to expose this to the user could be implemented fairly easily and will probably be done outside of this PR. The other update is a bugfix which caused soundtracks to be returned as not found, as getGameDir only checks steamapps/common in each library folder, whereas soundtracks are stored at steamapps/music.

There is an outstanding issue with getting the name from the App Manifest, which was implemented outside of this PR. xargs, which is used to strip trailing whitespace from the game names fetched from the App Manifest, doesn't like when game names have 'unmatched' single quotes in them, e.g. "Shantae and the Pirate's Curse". This will need to be addressed, but could be addressed in a separate PR as some other places which use the function to get a value from the App Manifest will need to be tested.

The help page needs updated to reflect the changes to the list function.

Previously the list command only listed out a bunch of AppIDs, now in addition to listing the AppIDs it can also
list the game name, game path, and all three.

The help page still needs updated to reflect these changes. There is also an issue with getting the name from
the App Manifest, which was implemented outside of this PR. xargs, which is used to strip trailing whitespace
from the game names fetched from the App Manifest, doesn't like when
game names have 'unmatched' single quotes in them, e.g. "Shantae and the
Pirate's Curse"
@sonic2kk sonic2kk changed the title Update list cmd Update 'list' Command Jan 28, 2023
@sonic2kk
Copy link
Owner Author

The getgamedir command was updated to allow passing an only option, which will only display the path to the game installation directory and will not display the Game Name (AppID) part.

@sonic2kk sonic2kk merged commit 040aad5 into master Jan 28, 2023
@sonic2kk sonic2kk deleted the update-list-cmd branch January 28, 2023 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant