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

Fix some non-steam shortcuts being skipped #114

Merged
merged 1 commit into from
Jul 26, 2022
Merged

Fix some non-steam shortcuts being skipped #114

merged 1 commit into from
Jul 26, 2022

Conversation

kmicki
Copy link
Contributor

@kmicki kmicki commented Jul 26, 2022

Regex expression parsing shortcuts.vfd file has been modified so it doesn't skip shortcuts where 4-byte appid is translated into less-than-4 character UTF-8 text.
Before fix: appid had to be matched to exactly 4 characters. But regexp matches UTF-8 so sometimes it could be 1,2 or 3 characters.
After fix: appid is matched to an UTF-8 text of 1 to 4 characters. Matched byte length of appid is always 4.

Fixes #110.

Regex expression parsing shortcuts.vfd file has been modified so it doesn't skip shortcuts where 4-byte appid is translated into less-than-4 character UTF-8 text.
Before fix: appid had to be matched to exactly 4 characters. But regexp matches UTF-8 so sometimes it could be 1,2 or 3 characters.
After fix: appid is matched to an UTF-8 text of 1 to 4 characters. Matched byte length of appid is always 4.
@boppreh
Copy link
Owner

boppreh commented Jul 26, 2022

Looks good, thanks for the contribution!

@boppreh boppreh merged commit 5c739e9 into boppreh:master Jul 26, 2022
@boppreh
Copy link
Owner

boppreh commented Jul 26, 2022

(by the way, this was not automated, I just happened to catch your PR quickly and understand the regex expression well)

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.

Non-steam game gets skipped (not processed at all)
2 participants